Game Development Community

Ran a WAN game on multiple PCs behind a NAT router?

by Flybynight Studios · in Torque Game Engine · 08/10/2006 (9:30 pm) · 5 replies

I thought I would broach this question since I'm thinking about the subject. Pardon me if I am missing the obvious but my brain is finished tonight. heh.

My game client connects to the login server on a port, say 8000, I also connect to a dedicated chat server, say 8001.. Now during the process of playing the game the client hops to various game servers on various ports... say between 8010 and 8099..

Normally it would be easy to just forward ports 8000-8100 to the ip and you'd be free n clear. What about multiple stations behind a nat router? (Your generic home grown linksys / dlink etc.)

Thanks in advance.

PS: Picture =)

Internet ---- Router ----- Switch -------- Station 1
................................................\_______________ Station 2

#1
08/10/2006 (10:52 pm)
You shouldn't need any fancy port forwarding to connect multiple TGE clients to a WAN game through a NAT router. Much like Quake and Half-Life it should work transparently. Now putting the server behind a NAT router is a different issue.
#2
08/10/2006 (11:17 pm)
During closed alpha I am running the server behind a nat.. Any issues there?

I have a couple of cisco 2600s and a nortel router that I plan to roll out when I get past alpha stages into production beta. At that point I will have clean routes right to the servers.

thanks BTW. =)
#3
08/11/2006 (2:38 am)
Clients shouldn't need any NAT settings, it's only needed for incoming connections - so your server should need them only.
#4
08/11/2006 (9:40 am)
Right so basically in the example above, forward ports 8000-8100 to your static serverIP. Or forward a smaller range of ports to individual servers if they will house more than one game instance..

Example:

server1: 10.0.0.50 - 3 zone instances running on ports 8010-8012
Port forward ports 8010-8012 from your WAN side to 10.0.0.50

server2: 10.0.0.51 - 2 zone instances running on ports 8015-8016
Port forward ports 8015-16 to 80.0.0.51

I just wasnt sure what other peripheral ports Torque might open upduring the process of game play other than the initial UDP connection stream.
#5
08/11/2006 (9:51 am)
That is correct, FS.