Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-22-2006, 01:04 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
Question Counter-Strike Source Servers invisible to WAN...and then LAN..wait a minute here..

Alright, first off I'd like to say hello to everyone. I've lurked through this forum for about a week now. After ~13 years of windoze I finally took the plunge and now have a dual boot of winxp/Ubuntu. I also have a second computer that is used only for LAN get togethers(webserver & various dedicated game servers), that I finally ditched the win platform on and decided to go with Ubuntu server install because at this point this is the version I am most comfortable with. I haven't set apache up yet so I dunno how that will pan out yet. Enter the wonderful Source Dedicated Server (Hereafter SRCDS). I've been doing various dedicated servers for about 2 years so I can navigate my way through them fairly well until now. I'll go through this with as much detail as I can possibly muster up, bear with me. I have searched and searched to no avail have I come up with a viable solution to my problem.

This is a DHCP server hooked to a cable line. All needed SRCDS ports are opened and forwarded correctly to the inside server ip. I can verify this by giving a windows box the ip and it will run a server fine(no, both boxes are not on at the same time).

The SRCDS server is fully updated as of about 15 minutes ago. I use a screen script to launch the various mods, I'll use the script to launch a counter-strike server as an example:

echo "Starting CS:Source Server"
sleep 1
screen -A -m -d -S CS:S-Server ./srcds_run -console -game cstrike +map de_dust +maxplayers 16 -port 27015 -autoupdate -tickrate 100
And it launches fine. With this script when the server launches, I can see the server in the server list on my main computer since I'm on the LAN, but no one from the outside can see the server(I used 2 friends to verify this). I also used a very nice web based custom port probe to check the outside status of my ports and while the rest of the ports register as "Stealth", port 27015 registers as "Closed". I didn't understand that because the server is running on 27015 and since I can connect to it via my lan connection it's obviously not closed. Switching the router to DMZ and sticking in the server ip address does nothing. "Ok,something's wrong with the ip settings or port settings" I think, so I start tinkering with the setup. Nothing seemed to have an effect until I added a "+ip" to the string to make it bound to the static ip issued by the DHCP(I've set the DHCP with the server's MAC address, it gets the same ip everytime). After a quick restart, I can no longer see the dedicated server in my window, but my friends can happily play on it now, and the web based port scanner reads port 27015 as being "open" . Wait a minute...just not showing up in the server window..lets try "connect" ...times out. Ok..let's try the ssh..The SSH works, ping works. The fact that my friends can now get on my server from the outside means that atleast the router forwarding is doing what it's supposed to do, but I absolutely do not understand how binding the server to an ip that it had already obtained from the DHCP makes me unable to connect to it while making it wide open to the outside, and the opposite happens when I leave "+ip" out. I'm assuming this is not a firewall issue because it's this one command that seems to change everything. I'm sure this is a simple fix but I'm afraid my knowledge of Linux is mediocre at best and I have not the slightlest clue of how to fix or troubleshoot this. ANY help at all would be greatly appreciated. All other network-oriented services thus far work fine, it's this roadblock(and at this point, this is a biga** roadblock) that's really making me want to pull my hair out.

Last edited by Chris9450; 01-22-2006 at 02:38 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Counter-Strike Source carlosinfl Linux - Games 7 10-26-2005 09:43 AM
counter strike source linuxmandrake Linux - Games 7 07-29-2005 08:16 AM
Counter Strike Source / Contiuum (Subspace) dedicated servers? fturcic Linux - Games 2 01-31-2005 07:40 AM
Counter-strike,[color=orange]H L F - L I F E [/color],Counter-strike: Source. Dennisgoop Linux - Games 2 08-10-2004 03:03 AM
WINE + Counter-strike,LAN game problem vykupitel Linux - Software 1 07-30-2003 09:26 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration