06-07-2011, 06:55 AM
(This post was last modified: 06-15-2011, 03:02 AM by Cyba_Mephisto.)
My setup:
Server: Ubuntu Server Edition 11.04
No firewalls
Game-PC: Win7 Ultimate Edition x64
Both connected to a D-LINK DIR825 router. A CISCO EPC3212 is connected to the router via wan-port.
No matter if I host l4d2, tf2 or dods using the linux dedicated server none of my friends can join me using the game info. But they can join the servers directly via external ip.
I can join the servers with local and external ip without a problem. Only if I host a l4d2 lobby using forceservers with the external address nothing happens. If I use the local ip, I can connect, but the others can't.
As long as someone else is the lobby-leader and connects to the server it works perfectly fine.
Ports forwarded for my server:
TCP: 1200,4380,6901,26901,27000-27051
UDP: 1200,3478,4379,4380,6901,26901,27000-27051
startl4d2server.sh:
l4d2server.cfg:
starttf2server.sh:
tf2server.cfg:
tbh I'm out of ideas. It got it to work on a windows-machine once, but since then I've already reset my router so it might be possible that there's a setting wrong.
Big fat thx for any advice that might save my ass! Ask if there are any questions.
Server: Ubuntu Server Edition 11.04
No firewalls
Game-PC: Win7 Ultimate Edition x64
Both connected to a D-LINK DIR825 router. A CISCO EPC3212 is connected to the router via wan-port.
No matter if I host l4d2, tf2 or dods using the linux dedicated server none of my friends can join me using the game info. But they can join the servers directly via external ip.
I can join the servers with local and external ip without a problem. Only if I host a l4d2 lobby using forceservers with the external address nothing happens. If I use the local ip, I can connect, but the others can't.
As long as someone else is the lobby-leader and connects to the server it works perfectly fine.
Ports forwarded for my server:
TCP: 1200,4380,6901,26901,27000-27051
UDP: 1200,3478,4379,4380,6901,26901,27000-27051
startl4d2server.sh:
Code:
export RDTSC_FREQUENCY=1870.000000
echo ""
echo "Starting Left4Dead 2 Dedicated Server"
echo ""
sleep 1
./srcds_run -console -game left4dead2 -secure +ip 192.168.0.103 +hostip **.***.***.** +hostport 27051 +clientport 27007 +map c1m1_hotel
l4d2server.cfg:
Code:
// % COPY BELOW THIS LINE %
//-----------------------------------------------------------
//--> This server.cfg is custom-created to assist server owners with
//--> setting up their server.cfg. You can copy/paste this text
//--> into your server.cfg or simply cookie cutter and use the
//--> parts that you would like to.
//-----------------------------------------------------------
//--> Updated 01/04/2010
//-----------------------------------------------------------
//--> This is the name for your server
hostname HOUSE of Rage
sv_steamgroup 1426533
sv_steamgroup_exclusive 0
//--> When Enabled, Steamgroup members take priority when joining
//--> The server. However, anyone may join as long as a steamgroup
//--> Member has joined first. Slots are only reserved while they
//--> Are available in this manner, and a minimum of 1 slot is
//--> Reserved, because when a steamgroup member connects to the
//--> Server, other players will be able to connect. If there are
//--> Other players connected and the steamgroup member disconnects
//--> A random player will qualify to fill the remaining slot.
//Allow connections without creating lobby
//--> "0" = Off
//--> "1" = On
sv_allow_lobby_connect_only 0
//--> Default is "0". When Enabled, cannot connect to
//--> Games currently in progress.
//--> All talk - Allow both teams to use audio chat to speak with each other
//--> "0" = Off
//--> "1" = On
sv_alltalk 0
//--> Region - This sets the lobby in which your server will be part of
//--> You will want to set this to the closest location to 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
sv_region 255
// Log Settings
sv_logfile 1
sv_logbans 1
sv_logecho 1
sv_log_onefile 0
sv_search_key "pprth"
setmaster add 68.142.72.250:27011
setmaster add 72.165.61.189:27011
// Execute ban files
exec banned_user.cfg
exec banned_ip.cfg
writeid
writeip
// % COPY ABOVE THIS LINE %
starttf2server.sh:
Code:
export RDTSC_FREQUENCY=1870.000000
echo ""
echo "Starting TF2 Dedicated Server"
echo ""
sleep 1
./srcds_run -console -autoupdate -game tf +ip 192.168.0.103 +hostip **.***.***.** -port 27051 +clientport 27007 +map cp_granary +maxplayers 24 -tickrate 66
tf2server.cfg:
Code:
// last modified 10:23 AM 6/4/2006
// **************************************
// server name
// **************************************
hostname "HOUSE of Rage - TF2 Server" // Name of the server.
// **************************************
// passswords
// **************************************
rcon_password "yourPASSWORDhere" // Remote control password.
sv_password "" // Server password for entry into multiplayer games. Password = private, no password = public.
// **************************************
// specific Day of Defeat: Source cvars
// **************************************
dod_bonusround "1" // If true, the winners of the round can attack in the intermission. Default: 1
dod_bonusroundtime "15" // Time after round win until round restarts. Default: 15
dod_enableroundwaittime "1" // Enable timers to wait between rounds. Default: 1
mp_allowrandomclass "1" // Allow players to select random class. Default: 1
mp_combinemglimits "0" // Set to 1 to combine the class limit cvars for mg34 and mg42. New limit is sum of two. Default: 0
mp_tickpointinterval "30" // Delay between point gives. Default: 30
mp_limit_allies_assault "-1" // Class limit for team: Allies class: Assault. Default: -1
mp_limit_allies_mg "-1" // Class limit for team: Allies class: Machinegunner. Default: -1
mp_limit_allies_rifleman "-1" // Class limit for team: Allies class: Rifleman. Default: -1
mp_limit_allies_rocket "-1" // Class limit for team: Allies class: Rocket. Default: -1
mp_limit_allies_sniper "-1" // Class limit for team: Allies class: Sniper. Default: -1
mp_limit_allies_support "-1" // Class limit for team: Allies class: Support. Default: -1
mp_limit_axis_assault "-1" // Class limit for team: Axis class: Assault. Default: -1
mp_limit_axis_mg "-1" // Class limit for team: Axis class: Machinegunner. Default: -1
mp_limit_axis_rifleman "-1" // Class limit for team: Axis class: Rifleman. Default: -1
mp_limit_axis_rocket "-1" // Class limit for team: Axis class: Rocket. Default: -1
mp_limit_axis_sniper "-1" // Class limit for team: Axis class: Sniper. Default: -1
mp_limit_axis_support "-1" // Class limit for team: Axis class: Support. Default: -1
mp_warmup_time "0" // Warmup time length in seconds. Default: 0
sv_autojointeam "0" // Skip the class and team menus and join a team immediately. Default: 0
// **************************************
// sv cvars
// **************************************
sv_allowdownload "1" // Allow clients to download files. Default: 1
sv_allowupload "1" // Allow clients to upload customizations files. Default: 1
sv_alltalk "0" // Players can hear all other players, no team restrictions. Default: 0
sv_cheats "0" // Allow cheats on server. Default: 0
sv_consistency "1" // Whether the server enforces file consistency for critical files. Default: 1
sv_gravity "800" // World gravity. Default: 800
sv_lan "0" // Server is a lan server (no heartbeat, no authentication, no non-class C addresses). Default: 0
sv_maxspeed "320" // Maximum speed a player can move. Default: 320
sv_pausable "0" // Is the server pausable. Default: 0
sv_region "1" // The region of the world to report this server in. Default: -1
sv_timeout "45" // After this many seconds without a message from a client, the client is dropped. Default: 65
sv_voiceenable "1" // Microphone communication. Default: 1
// **************************************
// mp cvars
// **************************************
mp_allowspectators "1" // Toggles whether the server allows spectator mode or not. Default: 1
mp_autokick "1" // Kick idle/team-killing players. Default: 0
mp_chattime "10" // Amount of time players can chat after the game is over. Default: 10
mp_flashlight "1" // Allow flashlight. Default: 0
mp_footsteps "1" // Players can hear footsteps. Default: 1
mp_forcecamera "1" // Restricts spectator modes for dead players. Default: 0
mp_fraglimit "0" // Max number of kills any player can accumulate before server changes maps. Default: 0
mp_friendlyfire "1" // Allow team damage. Default: 0
mp_limitteams "1" // Max # of players 1 team can have over another. Default: 2
mp_timelimit "45" // Game time per map in minutes. Default: 0
mp_winlimit "7" // Max number of rounds one team can win before server changes maps. Default: 0
// **************************************
// bandwidth and rates
// **************************************
sv_maxrate "30000" // Max bandwidth rate allowed on server, 0 = unlimited. Default: 0
sv_minrate "0" // Min bandwidth rate allowed on server, 0 = unlimited. Default: 0
sv_maxupdaterate "66" // Maximum updates per second that the server will allow. Default: 60
sv_minupdaterate "0" // Minimum updates per second that the server will allow. Default: 10
decalfrequency "10" // Amount of time in seconds a player can spray their decal. Default: 10
fps_max "300" // Frame rate limiter. Default: 300
// **************************************
// server logging
// **************************************
log "on" // Control logging. on = enable logs, off = disable logs.
sv_logbans "1" // Log server bans in the server logs. Default: 0
sv_logecho "1" // Echo log information to the console. Default: 1
sv_logfile "1" // Log server information in the log file. Default: 1
sv_log_onefile "1" // Log server information to only one file. Default: 0
// **************************************
// server admin contact
// **************************************
sv_contact "admin@domain.com" // Contact email for server sysop.
// **************************************
// web server (http) download URL
// **************************************
sv_downloadurl "" // Location from which clients can download missing files.
// **************************************
// security
// **************************************
exec "banned_user.cfg"
exec "banned_ip.cfg"
writeid
writeip
tbh I'm out of ideas. It got it to work on a windows-machine once, but since then I've already reset my router so it might be possible that there's a setting wrong.
Big fat thx for any advice that might save my ass! Ask if there are any questions.