Cannot connect to the own dedicated Gmod server

garrys-modserver-administrationUbuntu

I can open the console in Gmod and use the command connect to try to join "localhost", "127.0.0.1", and "{my_ip_address}". However, these all show me a dialog box that says "Connection failed after 4 retries".

I have my server installed on Ubuntu 13.04. I wrote a little startup script to optionally update the server and then call this line:

./$GMOD_DIR/srcds_run -game garrysmod +maxplayers $MAX_PLAYERS +map $MAP

Where $GMOD_DIR is ${SERVER}/gmod/, $MAX_PLAYERS is 4, and $MAP is gm_construct.

It gives me this output:

Auto detecting CPU
Using default binary: ./srcds_linux
Server will auto-restart if there is a crash.

Console initialized.
ConVarRef mat_dxlevel doesn't point to an existing ConVar
Game_srv.so loaded for "Garry's Mod"
Setting breakpad minidump AppID = 4000
Initializing Steam libraries for secure Internet server
Logging into anonymous gameserver account.
Fetching Workshop Addons.. No -authkey
Network: IP 127.0.1.1, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
Unable to persist cache 'modelsounds.cache', check file permissions
Error loading cfg/trusted_keys_base.txt
Error loading cfg/pure_server_minimal.txt
PREP OK
Lua JIT is DISABLED!
ConVarRef room_type doesn't point to an existing ConVar
Executing dedicated server config file server.cfg
Map cycle file 'cfg/mapcycle.txt' was not found.
Unable to persist cache 'modelsounds.cache', check file permissions
Nav File is wrong or something (4)
Initializing Steam libraries for secure Internet server
Logging into anonymous gameserver account.
Server logging enabled.
Unable to open logfiles under logs/L0714
Logging disabled
Connection to Steam servers successful.
   Public IP is (omitted).
Assigned anonymous gameserver Steam ID [A-1:3885134849(3517)].
VAC secure mode is activated.

I am mostly concerned with these lines:

Lua JIT is DISABLED!

I'm assuming this is some reference to Lua/Java Just In Time compiler

Nav File is wrong or something (4)

No idea what this is. Google didn't help very much.

Server logging enabled.
Unable to open logfiles under logs/L0714
Logging disabled

Best Answer

The port could have changed to 27016 instead of the default 27015 since you are using 'connect' try going into 'Find Multiplayer Game' then into 'Local Area Network' and find your server there.