Game Development Community

Hosting an Online game from a LAN network?

by Josh Moore · in Torque Game Engine · 03/03/2006 (4:29 am) · 5 replies

My development partners want set up an Online server from within a LAN network so we can get as many people as possible to test our game networked. Is this possible at all? And if so, how would I go about forcing it to host Online rather than LAN?

Thanks.

#1
03/03/2006 (5:06 am)
Set you LAN out in your routers DMZ, then have everyone connect to your actual IP addy
#2
03/03/2006 (6:03 am)
If you're behind a router you'll want to forward the port your hosting your server on.
Check this out.

Other people can then connect to that computer using your ISP provided IP address (not your local IP to your network).

Hosting it "online rather than LAN" just means where you're connecting from. If you host the game and someone wants to join your game on your network, they could specify the local IP address from your network and connect to your server - so they're technically connecting through your LAN. Other clients from outside your network (over the internet) simply specify the IP address provided by your ISP (see above), and if the port is forwarded properly to the right machine - you're in business.

If you're using a hub and you're paying for the seperate IP addresses then you're better off just all connected to the ISP provided IP address.

Hope it helps,

- Eric
#3
03/03/2006 (5:26 pm)
Thanks guys. I actualy ended up tracking how a Torque server sets up the network connection after posting this thread and realised it's just setting the connection port. I'm a total networking noob so I don't really get it, but I'll pass the info to the guys in the office so they can try to get it working.
#4
03/03/2006 (5:38 pm)
Http://www.hamachi.cc/

creates a fake LAN network over the internet if you want to check that out.
#5
03/04/2006 (5:11 am)
If you're wanting your locally hosted server to appear as an online server then as others have pointed out, you just need to ensure your firewall forwards ports correctly.

Quote:
28000 - 28002 for communication with the master server
1031 as a join request port if you are the host
1048 for the actual join port for a host