Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: WiLD on June 14, 2006, 02:42 AM

Title: Winsock error?
Post by: WiLD on June 14, 2006, 02:42 AM
My bot runs off BNLS (im yet to figure out war3 hash  :-X) and it connects and works fine while at home, but i brought it here to work and it doesnt seem to even connect to BNLS. Im guessing its a problem with the winsocks component, perhapes a different version or something?
What makes it weirder though is i brought my copy of visual studio to work and installed that (which should install/replace winsocks component, correct?) but i was still getting the same problem.


[17:37:11] [BNLS] Connecting...
[17:37:11] [BNLS] Connected.
[17:37:11] [BNLS] Sending authorization information...
[17:37:11] [BNLS] Disconnected.


Anyone have any idea on what the problem could be?

I dont believe it to be a router/firewall problem cause i have the exact same router at home with similar settings and there is no firewall at either location.
Title: Re: Winsock error?
Post by: rabbit on June 14, 2006, 06:25 AM
A router is a firewall.  Anyway, if it was an error, you'd get the error callback.  Check your port settings.
Title: Re: Winsock error?
Post by: WiLD on June 14, 2006, 07:45 AM
Quote from: rabbit on June 14, 2006, 06:25 AM
A router is a firewall.  Anyway, if it was an error, you'd get the error callback.  Check your port settings.

..meh.

By definition a firewall is a system that protects the data in a private network, while a router is a device that routes data among networks. Main difference between firewall and router is in number of features and price. That is what you meant right?  ;)

Anyways, I dont believe anything is using the ports. The only difference between the router at work and my home is the WAN type i believe, which wont make a difference.

I have tried on several different computers here at work and end up with the same result, i am beginning to think it might be a router issue but i do believe they are the same.
Title: Re: Winsock error?
Post by: rabbit on June 14, 2006, 07:51 AM
The router may be blocking the ports is my point.  You'll have to open them up to allow data through.
Title: Re: Winsock error?
Post by: WiLD on June 14, 2006, 07:59 AM
Im looking at router config now and no ports at all are blocked. I doubt anyone here has any experience with it since its an Australian brand but its a Netcomm NB1300.
I think my best bet is to take a look at my router config at home and see what ive got different.

Starcraft works fine here (work).
Title: Re: Winsock error?
Post by: rabbit on June 14, 2006, 08:02 AM
Try not sending the BNLS auth packets then, they are no longer required.
Title: Re: Winsock error?
Post by: Grok on June 15, 2006, 08:25 PM
Quote from: WiLD on June 14, 2006, 02:42 AM
My bot runs off BNLS (im yet to figure out war3 hash  :-X) and it connects and works fine while at home, but i brought it here to work and it doesnt seem to even connect to BNLS. Im guessing its a problem with the winsocks component, perhapes a different version or something?
What makes it weirder though is i brought my copy of visual studio to work and installed that (which should install/replace winsocks component, correct?) but i was still getting the same problem.


[17:37:11] [BNLS] Connecting...
[17:37:11] [BNLS] Connected.
[17:37:11] [BNLS] Sending authorization information...
[17:37:11] [BNLS] Disconnected.


Anyone have any idea on what the problem could be?

That looks like a protocol-specific problem.  If you're reaching BNLS and connecting, your data is not blocked on the ports being used.  The disconnect happens when you send data.  Are you logging the replies properly?  BNLS should disconnect after it sends your reply, as your business with it is finished.  Maybe you got the reply and just didn't handle it?
Title: Re: Winsock error?
Post by: WiLD on June 19, 2006, 07:48 AM
I figured it out.
The computer(s) i was using had their regional settings set to Korean, when i changed it back to english it seemed to work fine.

...grr, now korean programs wont work, such as CDSpace  >:(

Ahwell.

Thanks guys