SRCDS Steam group


Need help setting up server for LAN play only
#1
Hello Forum and thanks for letting me ask this question. I hope someone can help me. I'm trying (so far unsuccessfully) to set up a SRCDS server that is intended to be used for a LAN party.

I am running on a brand new server that I assembled this weekend. It is built from old used parts that I had in a storage box: Asus P5K mainboard, intel core2duo E6750 CPU, 4G of PC2700 RAM, 160G SATA drive and an Nvidia 7300GT. The whole thing is running a fresh install of Ubuntu 11.04 with no add-ons. (I'm also learning linux at the same time!)

I have installed SRCDS and it appears to run. It took quite a long time to download the server files when it originally updated, but it looks like it is running fine now. The problem is that my client (running on different machines) cannot detect the server. Maybe I'm missing something extremely simple, but I just don't see how to get the client to "see" the server when they both are connected to the exact same router.

One thing that seems odd to me is that when the server runs, it prints that it is running as IP 127.0.1.1. This isn't really a loopback IP (127.0.0.1) and my local Class C network is 192.168.0.nnn. The server has an IP of 192.168.0.203.

The command line I am using is:

./srcds_run -game tf -autoupdate +sv_lan 1 +map ctf_2fort

My server.cfg is as follows
Code:
// this is your server name as shown in the server list
hostname "Stupid's TEST Server"

sv_password "redacted"
// your server password. a pair of double quotes means it is not set and anyone can join

// start rcon settings

rcon_password "redacted"
// your rcon password to log into the dev rcon console or HLSW rcon console
sv_rcon_banpenalty 5
// Number of minutes to ban users who fail rcon authentication
sv_rcon_maxfailures 10
// Max number of times a user can fail rcon authentication before being banned

// end rcon settings

// start cvars for balancing un-even teams

mp_autoteambalance 0
// 0 is off and 1 is on. if 1 then should be used in conjunction with the following 3 commands
mp_autoteambalance_delay 60
// Time (in seconds) after the teams become unbalanced to attempt to switch players
mp_autoteambalance_warning_delay 30
// Time (in seconds) after the teams become unbalanced to print a balance warning
mp_teams_unbalance_limit 2
// Teams are unbalanced when one team has this many more players than the other (0 disables)

// end cvars for balancing un-even teams

// start cvars for round and game times

mp_enableroundwaittime 1
// Enable or disable timers to wait between rounds. 0 is off 1 is on
mp_bonusroundtime 20
// Time after round win until round restarts (in seconds)
mp_restartround 20
// Time the current round will restart (in seconds)
mp_stalemate_timelimit 120
// Timelimit (in seconds) of the stalemate round
mp_timelimit 30
// game time per map in minutes

// end cvars for round and game times

// start cvars for win conditions

mp_maxrounds 4
// Max number of rounds to play before server changes maps
mp_winlimit 3
// Max number of rounds one team can win before a server changes maps

// end cvars for win conditions

// start client specific cvars

mp_forcecamera 0
// force dead clients to first person mode disabling freelook. 0 is off 1 is on
mp_allowspectators 1
// enable or disable spectators on the server. 0 is off 1 is on
mp_friendlyfire 0
// 0 is off and clients can do harm to team mates. 1 is on and players can kill or injure team mates
mp_footsteps 1
// footsteps on or off. 0 is off and 1 is on
sv_cheats 0
// allow cheats to be used by the client. 0 is off 1 is on
sv_timeout 300
// the amount of time in seconds that a client is booted for no input
sv_maxspeed 320
// the maximun speed a client can move at
sv_consistency 1
// Force clients to pass a consistency check for critical files before joining server. 0 is off 1 is on
decalfrequency 10
// the pause in seconds between a decal being sprayed

// end client specific cvars

// start cvars for communication

sv_voiceenable 1
// allow players to use a microphone. 0 is off 1 is on
sv_alltalk 0
// toggles whether both teams can hear each others voice comms or not. 0 is off 1 is on. recommend it being off
mp_chattime 10
// players can chat for this amount of time (in seconds) after a game is over

// end cvars for communication

// start download cvars

sv_allowupload 1
// allow custom decals to be uploaded. 0 is off 1 is on
sv_allowdownload 1
// allow files to be downloaded from the server. 0 is off 1 is on
net_maxfilesize 15
// Max download file size. Default is 15
sv_downloadurl ""
//redirect download location

// end download cvars

// start bandwidth rates/settings

sv_minrate 20000
sv_maxrate 30000
decalfrequency 10
sv_maxupdaterate 100
sv_minupdaterate 66
sv_mincmdrate 66
sv_maxcmdrate 100

// end bandwidth rates/settings

// start server logging

log off
// enable or disable server logging. on is on off is off
sv_logbans 0
// Log server bans in the server logs
sv_logecho 1
// Echo log information to the console. 0 is off 1 is on
sv_logfile 0
// Log server information in the log file. 0 is off 1 is on
sv_log_onefile 0
// log everything in one file

// end server logging

// start cvars for general operation

sv_lan 0
// is this an internet or LAN server. 0 is internet 1 is LAN
sv_region 1
// server location. -1 is the world, 0 is USA east coast, 1 is USA west coast, 2 south america, 3 europe, 4 asia, 5 australia, 6 middle east, 7 africa
sv_contact spam@therealstupid.com
// contact email for sysop
sv_pausable 0
// enables or disables whether the server can be paused. 0 is off 1 is on
sv_pure 1
// forces all clients on the server to use content that matches what is on the server. 0 is off 1 is on
sv_pure_kick_clients 1
// kicks clients that do not have content that matches what is on the server

// end cvars for general operation

// start execute ban files

exec banned_user.cfg
exec banned_ip.cfg

// end execute ban files

When the server starts up, it says:
Code:
Auto detecting CPU
Using default binary: ./srcds_linux
Server will auto-restart if there is a crash.
Running a benchmark to measure system clock frequency...
Finished RDTSC test. To prevent the startup delay from this benchmark, set the environment variable RDTSC_FREQUENCY to 2671.000000 on this system. This value is dependent upon the CPU clock speed and architecture and should be determined separately for each server. The use of this mechanism for timing can be disabled by setting RDTSC_FREQUENCY to 'disabled'.
Using breakpad minidump system
Using breakpad crash handler

Console initialized.
Game.dll loaded for "Team Fortress"
Setting breakpad minidump AppID = 440
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Installing breakpad exception handler for appid(440)/version(4617)
Particles: Missing 'particles/error.pcf'
maxplayers set to 24
No '-replayserverdir' parameter found - using default replay folder.
Replay: Creating thread pool...Replay: Starting thread pool with 4 threads...
succeeded.
Unknown command "r_decal_cullsize"
Unknown command "startupmenu"
Network: IP 127.0.1.1, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
ConVarRef room_type doesn't point to an existing ConVar
Executing dedicated server config file
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Failed to load Steam ServiceServiceStart: failed to startUnknown command "mp_autoteambalance_delay"
Unknown command "mp_autoteambalance_warning_delay"
Unknown command "sv_maxspeed"
--------------------------------------------------------
sv_pure set to 1.
Note: Changes to sv_pure take effect when the next map is loaded.
--------------------------------------------------------
exec: couldn't exec banned_user.cfg
exec: couldn't exec banned_ip.cfg
exec: couldn't exec ctf_2fort.cfg
   VAC secure mode disabled.

Any and all suggestions are completely welcome. I'm new to SRCDS (and to linux!) but learn fast!
Reply
#2
Start the server with "-ip 192.168.0.203".
Also google for "ubuntu static ip" and follow the instructions to insure that your server-ip won't change.

Try to connect to the server via console command using "192.168.0.203:insertyourserverporthere". Does it work then?
Also it would be good to know what router you are using.
Reply
#3
I was able to connect to the server manually using the console command "connect 192.168.0.203:27015", so at the very least I've verified that it works. Thanks!!

I'm a bit mystified why the lan server doesn't show up in the server list when I do a scan. I'd like to get that to work since putting in the IP manually is a bit kludgy. Plus, I would like to be able to allow one or two remote people to log in and I'm not sure which ports need to be forwarded to get it to work (yet). This might be especially problematic if they need to know my external IP, which is dynamic.

For what it's worth, both the server and the client used for this test were plugged into the same -switch- (not router). My home network consists of a single outside connection (It's Comcastic!) which feeds to a Netgear WRG614v7 router. The router handles local Wifi and DHCP. It has only two copper connections, each to a separate 8-port D-link DGS-208 switches. Downstream of one of the switches is a hard-wired TiVo box, a PS3, an XBOX360, a Wii and a seldom used Windows 7 laptop. The other switch has hardwired connections to my home fileserver (a 2T SNAP 4500), two gaming PCs, one old desktop Mac box and as of two days ago, a new ubuntu machine running srcds.

You've given me a few threads to chase down, so I'll be working on those this evening. Thanks for the help!!
Reply
#4
Also, after a bit of local testing, it looks like the server crashes when it tries to change maps. Sad
Reply
#5
For what it's worth, I was able to solve the map change crash issue by rolling back the vphysics.so to an earlier version.

Getting the server to show on the LAN list is still elusive.
Reply
#6
Only thing I can think is that you probably have some ports being blocked. I'd recommend turning off any security software and see if that helps.
Game Servers -- CentralFrag.com -- Use promocode "frag" for 15% off every month!
Reply


Forum Jump:


Users browsing this thread: