Inside3D!
     

WSAEADDRNOTAVAIL

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Orion



Joined: 12 Jan 2007
Posts: 414
Location: Brazil

PostPosted: Fri Sep 05, 2008 2:27 pm    Post subject: WSAEADDRNOTAVAIL Reply with quote

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 Wink
_________________
There's no signature here. Stop looking for one.
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Wed Oct 01, 2008 10:59 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group