PDA

View Full Version : settings for server behind NAT router


tmccoy
12-12-2004, 11:11 PM
I'm beginning to get a little concerned that my NAT router is playing up. Thusfar, I've

* port 27015 (both tcp and udp) are forward to the internal IP (a 192.168.1.x address)
* the machine is currently not firewalled (for testing)

Obviously, I can't see the machine in the online server listing - it does, however, appear in my LAN server browser. I'm running the server with:


screen -S css ./srcds_run +maxplayers 10 +map cs_office


and from in the server (IP address changed, obviously):


status
hostname: .:freeton:. [Melb, Australia]
build : 2217
udp/ip : 192.168.1.x:27015
map : cs_office at: 0 x, 0 y, 0 z
players : 0 (10 max)

# userid name uniqueid connected ping loss state adr


Should I give this the "+ip <real-world-ip>" command, or provided my ports are forwarded, things should work? Okay, so I don't have the fastest connection, so won't get hundreds of instant connections... can a few of you try and connect randomly? I'll leave the server up overnight. You should be able to find me at:

penguinpusher.[color="#FF66FF"]♥[/color][color="#FF66FF"]♥[/color][color="#FF66FF"]♥[/color].net:27015

or, it should list online as:

.:freeton:. [Melb, Australia]

Cheers

Tim

jokke
12-13-2004, 12:23 AM
Hi Tim,

It should be fine if you forward only UDP 27015 to your game server (works for me at least).

Maybe you should check if your server is also setup to act as server on the internet.

it is with the command "sv_lan 0" that you activate it on the internet also...

cheers

tmccoy
12-13-2004, 04:31 AM
Yeah, it would seem things are ok - I dropped in to my screen session a few times, and there were people moving about - allbeit a little limited, with some of the Linux bugs still haunting this server.

If I had cable, I might actually leave this machine running! Ahh... gotta love student-cheapo ADSL.

Cheers

Tim

TripHammer
12-13-2004, 11:04 AM
You need these ports forwarded:

UDP 27015
UDP 27011
UDP 27010

You don't need to specify your ip from the command line, Steam knows where you are connecting from, what you enter on the command line has no effect on what your ip shows when browsing the servers. Steam uses the ip that you attempted to connect from i.e. your gateways public IP address.

tsuehpsyde
12-14-2004, 01:22 PM
I've tried all of the following...I have sv_lan 0, all 3 of those UDP fowarded, and I have tried both TCP and UDP fowarding per valve's instructions.

None of this lists my server on the main list, wtf is going on here. I've been trying for weeks to do this, it shouldn't be this hard to get a server advertised on the list >:/

I mean, if you add my IP, it shows up and lets you connect fine. Bah, let's not forget the wonderful update valve made on the linux steam executable....

Please, PLEASE someone tell me wtf I'm doing wrong, or what needs to be done for this to work.

TripHammer
12-14-2004, 01:27 PM
You may need to set the correct region for your server

eastcoast - sv_region 0
westcoast - sv_region 1
south america - sv_region 2
europe - sv_region 3
asia - sv_region 4
australia - sv_region 5
middle east - sv_region 6
africa - sv_region 7
world - sv_region 255

tmccoy
12-14-2004, 01:32 PM
Well, last night, I had people connecting on and off over a three hour period. So I can only assume my server is listing as steam. The only last thing I set was:

sv_region 5

Which is supposed to make sure you list in the right regions. How does your server list (i.e. it's "hostname" string)? And who is looking for your server - you'll generally never find a server on your own LAN in the Internet server listing. Maybe get a fellow steam-enabled friend to have a look for ya!

Let us know where it exists, and we'll have a look to see if we can find it!

Cheers

Tim

tsuehpsyde
12-14-2004, 09:07 PM
im on the east coast, which is sv_region 0

my friends' server is set the same, and his shows up fine...and mine decides not to

the server is running, feel free to look forit...

tsuehpsyde's dedicated gentoo linux cs:source server

the hostname is

cssource.game-host.org:27015