Server behind router settings? -
11-13-2002, 05:32 AM
I am running MOHAA behind a router so the PC it runs on has an internal IP address. I forwarded all the ports to the PC with the server on it, so thats no issue. However, when the server runs it runs on the internal IP. So I add the command line switches:
Obviously where xxx.xxx.xxx.xxx is the WAN or external IP. And on running i get this error.
Opening IP socket: xxx.xxx.xxx.xxx:12203
WARNING: UDP_OpenSocket: bind: WSAEADDRNOTAVAIL
WARNING: Couldn't allocate IP port
for UDP ports 12203 - 12218
So I assume the server is having a conflict thinking it sholud be local IP and is being forced by the 'set net ip' to be set as external IP. Surely gamespy need your external IP so people know how to connect to you. Otherwise surely it would be brodcasting the local IP which obviously no one could connect to. I'm probably repeating this question that someone else has put in the forum b4 so apologies for that. But i have searched and searched for an answer to this UDP problem and this was a last resort. So how do i setup my server?
Ok will give that a go. Incidently i did try that and it looks like it was running but was unsure as to how GS would know what IP to connect to. Is there anyway i can test the servers apperance on GS because i am aware of the issue that i cant test it from the same LAN?
Thanks rudedog ran the server and after 5mins people started to show up.
All i did for anyone else reading this was setup my router to use this PC as a default server (I have a Alcatel Speedtouch PRO 510 router) and removed that set net ip switch from the server command line. Thats it! Thanks again. biggrin:
Good! glad to help. It sounds like you put your PC in the DMZ. This is preferred way to serv. I would recommend you make sure you have everything locked down, on the box and all security updates, updated. AS this box is out in the open now.
update OS
make sure file and print sharing is turned off and you should be all set.