View previous topic :: View next topic |
Author |
Message |
Orion

Joined: 12 Jan 2007 Posts: 414 Location: Brazil
|
Posted: Fri Sep 05, 2008 2:27 pm Post subject: WSAEADDRNOTAVAIL |
|
|
Guys, I'm trying to create a dedicated WAN server, but when I open the server I get this error:
LHNET_OpenSocket_Connectionless: bind returned error: WSAEADDRNOTAVAIL
dozens of times.
Also, I have 2 pcs here at home connected through a router.
And of course, I'm using my internet ip address to create the server.
I think there's something to do with the router's configuration...
Any help would be appreciated.
EDIT: There's not any typo, I copied and pasted my ip address 100% correctly from whatismyip.com  _________________ There's no signature here. Stop looking for one. |
|
Back to top |
|
 |
Spike
Joined: 05 Nov 2004 Posts: 944 Location: UK
|
Posted: Wed Oct 01, 2008 10:59 am Post subject: |
|
|
whatismyip.com shows you the ip that it sees.
This is the ip of the router, and not that of your server.
You cannot listen on that ip as it doesn't belong to the server.
Thus you get an error because of that.
Just listen on address 0.0.0.0 instead, and make your router forward packets from the internet to your server's ip. Use "netstat -r" to see the interface addresses for which destinations to use on your router.
Not sure but this might also happen if you listen on the same port twice.
In vista, ipv6 is supported via a shared stack. If you open an ipv6 socket and then an ipv4 socket on the same port, the second call will fail as ipv4 packets will be handled by the ipv6 socket. _________________ What's a signature? |
|
Back to top |
|
 |
|