- Banned
- #1
Thanks to Kuroneko's help I managed to get my server working. So I thought I'd share the method here. This guide is for all you poor folks behind a router.
1) Make sure you have a static IP. If you don't know if you have a static IP or if you have a dynamic IP you should follow this guide:
http://www.portforward.com/networking/staticip.htm
Once you're sure you have a static IP go to the next step.
2) Find out what router you have. Either
- Look at the router
- Go to Start -> Run -> 'telnet 10.0.0.138' -> OK
If you loose your connection keep retrying that command. Eventually you won't lose your connection. You'll see 'User :' or something similar. Hit enter and voila: your router.
3) Find your router config guide in this list:
http://www.portforward.com/routers.htm
Click on your router and you're in a new screen. Click on the 'Port Forwarding for the <blahblah>' button. Now you have a guide that should help you with port forwarding.
4) Open the MS ports:
- 2200
- 2400
- 47624
5) Open the Half-Life ports:
- 27005
- 27010
- 27011
- 27015
6) Click save (just as they tell you in the guide) and voila! The required ports are opened. There's more to do though.
7) You must configure the ms_ip variable. Go to your main MS folder and find server.cfg for a DEDICATED server or listenserver.cfg for a LISTEN server (a server you can join too). Open the file with Notepad and make sure there's a line saying
ms_ip "x.x.x.x"
The x's should be replaced by your IP. Don't know your IP?
http://www.whatismyip.com
http://www.whatsmyip.net
http://www.mijnip.nl
They should all give you the same numer. Now set ms_ip to your IP, for example:
ms_ip "1.2.3.4"
Also make sure you have a line in listenserver.cfg / server.cfg saying
sv_lan "0"
This makes your game an INTERNET game, rather than a LAN game.
8 ) Now your server SHOULD work. To finish this guide I have posted my server.cfg contents:
The "ip" line is optional as far as I know.
One more thing: If you have Service Pack 2 you *MIGHT* need to DISABLE Windows Firewall. I'm not sure about this yet but I'll figure it out soon enough.
Have fun 8)
1) Make sure you have a static IP. If you don't know if you have a static IP or if you have a dynamic IP you should follow this guide:
http://www.portforward.com/networking/staticip.htm
Once you're sure you have a static IP go to the next step.
2) Find out what router you have. Either
- Look at the router

- Go to Start -> Run -> 'telnet 10.0.0.138' -> OK
If you loose your connection keep retrying that command. Eventually you won't lose your connection. You'll see 'User :' or something similar. Hit enter and voila: your router.
3) Find your router config guide in this list:
http://www.portforward.com/routers.htm
Click on your router and you're in a new screen. Click on the 'Port Forwarding for the <blahblah>' button. Now you have a guide that should help you with port forwarding.
4) Open the MS ports:
- 2200
- 2400
- 47624
5) Open the Half-Life ports:
- 27005
- 27010
- 27011
- 27015
6) Click save (just as they tell you in the guide) and voila! The required ports are opened. There's more to do though.
7) You must configure the ms_ip variable. Go to your main MS folder and find server.cfg for a DEDICATED server or listenserver.cfg for a LISTEN server (a server you can join too). Open the file with Notepad and make sure there's a line saying
ms_ip "x.x.x.x"
The x's should be replaced by your IP. Don't know your IP?
http://www.whatismyip.com
http://www.whatsmyip.net
http://www.mijnip.nl
They should all give you the same numer. Now set ms_ip to your IP, for example:
ms_ip "1.2.3.4"
Also make sure you have a line in listenserver.cfg / server.cfg saying
sv_lan "0"
This makes your game an INTERNET game, rather than a LAN game.
8 ) Now your server SHOULD work. To finish this guide I have posted my server.cfg contents:
Code:
hostname "J-M's working server"
maxplayers "4"
sv_clienttrace "3.5"
pausable "0"
sv_maxspeed "600"
ms_ip "62.251.65.xx" (that's secret, sorry)
sv_lan "0"
ip "62.251.65.xx" (that's secret, sorry)
sv_cheats "0"
ms_allowvote "1"
sv_aim "0"
sv_clienttrace "3.5"
The "ip" line is optional as far as I know.
One more thing: If you have Service Pack 2 you *MIGHT* need to DISABLE Windows Firewall. I'm not sure about this yet but I'll figure it out soon enough.
Have fun 8)