FAQ  •  Register  •  Login

WSAEADDRNOTAVAIL

Moderator: Inside3D Admins

<<

Orion

User avatar

Posts: 465

Joined: Fri Jan 12, 2007 6:32 pm

Location: Brazil

Post Fri Sep 05, 2008 2:27 pm

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 :wink:
If my computer could talk, it would say:
( ) I love you
(X) Go get a fucking life, I'm so damn sick of you!
<<

Spike

Posts: 2068

Joined: Fri Nov 05, 2004 3:12 am

Location: UK

Post Wed Oct 01, 2008 10:59 am

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.

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.
Icons provided by Aha Soft