Log in

View Full Version : Making a Game Server


Rob
04-15-2004, 06:37 AM
I want to host servers for my friends to play games on, but my cable connection is hiding behind a router so I have no idea how to make it connect to specifically my computer.

How do I do that?

Mogwai
04-15-2004, 06:40 AM
You need to forward the proper ports. The ports depend on the game, and the procedure depends on the router/firewall.

Kraut
04-16-2004, 02:36 PM
Making a game server on a Cable connection is all fine and dandy, but keep in mind that your upstream will always be slower than your down stream. Just a few things you should be aware of.

How many people will be accessing this server? Will the connection be TCP/IP ? Even if your connection is 500Kb/100Kb Down/Up , if you had say, 10 people accessing that server, you would have to divide the connection evenly among each of them. For instance,

200/10 | 100/10 = 20K | 10K per person.

This number is even lower if you have multiple computers in your house hooked up to the internet. You would have to divide that number by the number of computers and machines connected to your LAN. After all the math is done, you may find that your connection sucks worse than a 56K connection. Also, your server will be downstreaming and upstreaming at the same time over different ports, not one then the other.

Personally, if I were to do it, I would use a T1 or a T3 connection. But those are impossible to get without paying out the ass.

Also, some cable providers prevent you from hosting a server without paying additional bandwidth charges. I'd check with your supplier if you haven't already.

Hope it works out.

Al
04-22-2004, 03:49 AM
You need to forward the proper ports. The ports depend on the game, and the procedure depends on the router/firewall.

If you're router is anything like mine (a cheap lump of OEM crap) then it might give you shit. However all you SHOULD have to do is get the port number's the game uses and point it to the local IP (the one the router gives out) of the sever and and Bob's you're mother's brother.

grrowl
06-16-2004, 06:51 AM
i'm going to repeat just about everything said in this thread already, but in a more straightforward way, plus some of my own experience.

Firstly, find out what ports your game uses. this will either be in the help files or available on the internet somewhere. Secondly, go into your router's administration, and forward those ports, or that port range to IP of the computer that's hosting your games.

Thirdly, your server. It's usually best if you're going to run a 'serious' server to run it in 'dedicated' mode. This means that you'll have only a server console available on the host machine, and you won't be able to play the game on that computer at all, but will be able to connect from another computer on your network.

Also, if you're running a 'serious' server, you're going to maybe need a better connection. I can easily host a 5-player Quake3 game on my home cable connection with no problems, but cable services vary from place to place, and the best way to find out if your connection is suitable is to try it out. Also, if you find your connection is lagging a couple of the clients a little, you'll want to fiddle with the game connection settings.

If you want any further help, we'll need to know the game you're hosting, how many clients at peak you'll expect, and if your connection is capped at all.

[edit]: also, to specifically address the question you asked, to find out the local IP of the computer you're currently running, go to Start, then Run. Type in COMMAND into that prompt, then type IPCONFIG. it'll give you something like this:
C:\>ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : bigpond.net.au
IP Address. . . . . . . . . . . . : 192.168.0.111
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1

where it says "IP Address....192.128.0.111", those last numbers is your IP. your router will either ask for your full IP or the last octet/number in that IP. simply forward the required ports to that IP, and you should be set with that. If you need help with forwarding the ports, either look up your router's documentation or post the brand and model number here and we'll run you through it.