Alliedassault

Alliedassault (alliedassault.us/index.php)
-   MoH General Discussion (alliedassault.us/forumdisplay.php?f=7)
-   -   Server behind router settings? (alliedassault.us/showthread.php?t=12407)

cab|eguy 11-13-2002 05:32 AM

Server behind router settings?
 
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:

"D:\EA GAMES\MOHAA\MOHAA_server.exe" +set net_ip xxx.xxx.xxx.xxx +set dedicated 1 +set ui_console 1 +set g_gametype2 +set sv_maxclients 10 +exec server.cfg

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?

Thanks guy's

rudedog 11-13-2002 05:59 AM

Try it without the netip setting. This is only needed when you have more then one nic installed on the server running MOH

Also see the moh faq on top for all the ports needed to run MOH from behind a router.

Good luck

cab|eguy 11-13-2002 06:08 AM

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?

rudedog 11-13-2002 06:22 AM

basically all you need to do is forward port 12203 ( game port ) All the other ports are needed for gamespy .

The sticky on top (moh faq) will give you a link to dogmeats port guide.

Also check out http://www.mohadmin.com under guides for some other helpful admin guides on running a moh server.

cab|eguy 11-13-2002 06:26 AM

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:

rudedog 11-13-2002 07:35 AM

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.


All times are GMT -6. The time now is 12:41 PM.

Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.