SRCDS Steam group


RCON still not working {SOLVED}
#1
I have tried and tried many times, read countless posts on the subject and even asked a friend who is better than me to help me with this issue and i've still not made it work...

RCON... My TF2 server works perfectly well except for RCON. Everytime i try to load the console using "rcon_password testpass" it doesn't do anything (which i understand is normal) but when i send for example "rcon changelevel ctf_sawmill" it fails saying:

"Unable to connect to remote server (192.168.1.50:27015)"

Notes:
1) People can play from the outside and have a very good ping
2) My router has the DMZ pointed to the server
3) Server doesn't have a firewall activated
4) Voice works fine too
5) HLSW or wathever it is named doesn't work and returns the same message
6) People from the outside can attempt the remote console but get the same message but with a public IP address instead

Technical info
--------------
Server: Linux Ubuntu 9.04 or somewhere near it, fully patched
SRCDS: Fully patched and installed at /home/valve/tf2
Computer: P4HT 3.2Ghz with 2gig of ram and a shitload of disk space for its use

If anything is missing please tell me i'd like to fix this asap

Run Script:
-----------
#!/bin/sh
echo "Starting TF2 IDR Clan Server"
sleep 1
cd orangebox
screen -A -m -d -S tf2-server ./srcds_run -game tf -timeout 30 -autoupdate -debuglog tf2debug.log +map cp_dustbowl +port 27015 +maxplayers 24
cd ..

Configuration file: server.cfg
---------------------------
hostname "[IDR] Ill Doctors Clan server"// this is your server name as shown in the server list
sv_password "" // your server password. a pair of double quotes means it is not set and anyone can join

//rcon settings
rcon_password "testpass" // 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 3 // Max number of times a user can fail rcon authentication before being banned

//cvars for balancing un-even teams
mp_autoteambalance 1 // 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)

//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

//cvars for win conditions
mp_maxrounds 10 // Max number of rounds to play before server changes maps
mp_winlimit 7 // Max number of rounds one team can win before a server changes maps

//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 180 // 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

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

// start download cvars
sv_allowupload 0 // 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

//bandwidth rates/settings
sv_minrate 20000
sv_maxrate 30000
decalfrequency 10
sv_maxupdaterate 100
sv_minupdaterate 66
sv_mincmdrate 66
sv_maxcmdrate 100

//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

//cvars for general operation
sv_lan 0 // is this an internet or LAN server. 0 is internet 1 is LAN
sv_region 0 // 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 mathieu@7dfx.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

//execute ban files
exec banned_user.cfg
exec banned_ip.cfg
Reply
#2
add your IP to the startupline +ip <local-IP-when-you're-behind-a-router>
Reply
#3
Check the security settings under linux?
Ryan White
Owner & CEO
GigabiteServers.com
Reply
#4
Wow, that was simple, now HLSW responds, i'll test at home in 30min if the whole rcon works from ingame! If it does, WOW. I will remember that one!
Reply
#5
Hummm nope, doesn't work after all...

It's even worst now, i added +ip 1952.168.1.50 and now i can't even see my server in the LAN list...
Reply
#6
When specifying the IP in the start up line, you must also specify the port.
Ryan White
Owner & CEO
GigabiteServers.com
Reply
#7
I already had the port, when i put the ip nothing works so i removed it at least i can play. I'll figure this out eventually, can anyone tell me if there is a log of errors somewhere?

thanks
Reply
#8
Use real IP when you try to connect to your server. When you want to use HLSW in LAN:
logaddress_add <ip of router>:7130 in HLSW console.

Are there any errors in your tf2debug.log or at startup?
Reply
#9
make sure the TCP port is also open. the game itself uses UDP but RCON uses TCP...
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#10
(10-08-2009, 04:55 AM)crazycoders Wrote:  2) My router has the DMZ pointed to the server

So that won't be a problem
Reply
#11
Somewhere I read that +ip 0.0.0.0 does the trick. I use it on my startup line. I used to have problems with RCON because on the server itself I couldn't connect to "localhost", but I needed to connect to the external address. I had +ip my.real.ip.address on the startup line. Then after I changed to +ip 0.0.0.0 I could connect to localhost and to the external IP address. I don't think you need to specify port even if you specify +ip address.
Reply
#12
No you can't use the external ip or it warns about an ip it cannot bind to and it's normal, the interfaces are only offering :l0: or :eth0: -> 192.168.1.50... It doesn't know where to bind to 74.210.214.86...

Anyway, as soon as i add +ip 74.210.214.86, it fails starting, and if i add +ip 192.168.1.50 i can't see it in the lan list anymore.

I just had to test while i was writing this, i restarted the server with ip 192 and went to my favorites (cause i added it yesterday) and could connect this time... and voila, rcon changelevel worked.

So, true, the rcon works only when IP is specified, but make sure not to try the external address taht'll never work.

What is strange but not obligated to fix, the lan list should still show my server. That useful only for me right, but i'd still want that fixed.

{SOLVED}
Reply
#13
Could you try the +ip 0.0.0.0. I'd like to confirm whether it's any use or not.
Reply
#14
Question 
(10-08-2009, 09:45 PM)crazycoders Wrote:  No you can't use the external ip or it warns about an ip it cannot bind to and it's normal, the interfaces are only offering :l0: or :eth0: -> 192.168.1.50... It doesn't know where to bind to 74.210.214.86...

Anyway, as soon as i add +ip 74.210.214.86, it fails starting, and if i add +ip 192.168.1.50 i can't see it in the lan list anymore.

I just had to test while i was writing this, i restarted the server with ip 192 and went to my favorites (cause i added it yesterday) and could connect this time... and voila, rcon changelevel worked.

So, true, the rcon works only when IP is specified, but make sure not to try the external address taht'll never work.

What is strange but not obligated to fix, the lan list should still show my server. That useful only for me right, but i'd still want that fixed.

{SOLVED}

Hi,
Just confirming, what exactly do you do to get the rcon password working?
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)