Nat 5 Dec, 2015 @ 11:10am
Users cannot connect to The Ship dedicated server.
I am attempting to run a dedicated server for The Ship on my Ubuntu VPS.
The server seems to start and run just fine, but nobody can connect to it - any attempts simply result in a timeout.

To start the server, I used this command:
$ ./srcds_run -game ship

And this is the output:
Auto detecting CPU Using SSE2 Optimised binary. Auto-restarting the server on crash Console initialized. Attempted to create unknown entity type event_queue_saveload_proxy! Game.dll loaded for "The Ship" CSoundEmitterSystem::AddSoundsFromFile: No such file scripts/game_sounds_single_player.txt CSoundEmitterSystem::AddSoundsFromFile: No such file scripts/game_sounds_vo_tutorial.txt maxplayers set to 1 Unknown command "ex/" Unknown command "yautoexec.cfg" Unknown command "y" Unknown command "startunuel" Unknown command "startupmvevel" Unknown command "startupmenvel" Unknown command "startupmenuel" Unknown command "startupmenu" Network: IP ***, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
(I replaced the IP with *s, that was deliberate)

Any help is appreciated.
Last edited by Nat; 5 Dec, 2015 @ 11:41am
< >
Showing 1-10 of 10 comments
Blaquicat 6 Dec, 2015 @ 6:33am 
You forwarded your ports?
You firewall is off? or alowing incoming on that port?
Nat 6 Dec, 2015 @ 6:53am 
Originally posted by Blaquicat:
You forwarded your ports?
You firewall is off? or alowing incoming on that port?
I have tried both using the iptables command to redirect ports, and running the server with sudo, neither have worked.
Blaquicat 6 Dec, 2015 @ 7:11am 
Originally posted by SirKarmios:
Originally posted by Blaquicat:
You forwarded your ports?
You firewall is off? or alowing incoming on that port?
I have tried both using the iptables command to redirect ports, and running the server with sudo, neither have worked.
What is your iptables policy on incoming?
And what iptables rule did you tried?
Last edited by Blaquicat; 6 Dec, 2015 @ 7:11am
Nat 6 Dec, 2015 @ 8:38am 
Originally posted by Blaquicat:
Originally posted by SirKarmios:
I have tried both using the iptables command to redirect ports, and running the server with sudo, neither have worked.
What is your iptables policy on incoming?
And what iptables rule did you tried?
I used this command:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 27015 -j REDIRECT --to-port 27015
Sepp 6 Dec, 2015 @ 9:18am 
I'm pretty sure the ship is also using udp for the game traffic (tcp is used for rcon).
Nat 6 Dec, 2015 @ 9:50am 
Originally posted by Sepp:
I'm pretty sure the ship is also using udp for the game traffic (tcp is used for rcon).
Well, I just tried this command as well as the previous one:
iptables -t nat -A PREROUTING -i eth0 -p udp --dport 27015 -j REDIRECT --to-port 27015
But that still has no effect.
Last edited by Nat; 6 Dec, 2015 @ 9:50am
Nat 6 Dec, 2015 @ 9:57am 
I have also tried these two commands before starting the server, both to no avail:
iptables -A INPUT -p udp --dport 27015 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT iptables -A INPUT -p tcp --dport 27015 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
Blaquicat 6 Dec, 2015 @ 1:56pm 
You need to read about iptables, you dont need "state" just to open a port..
Make sure your policy is ACCEPT and you are done, make sure its really tcp you are looking for, most games uses udp..
Any modem/router in the way?
Last edited by Blaquicat; 6 Dec, 2015 @ 1:59pm
Nat 8 Dec, 2015 @ 2:36am 
Originally posted by Blaquicat:
You need to read about iptables, you dont need "state" just to open a port..
Make sure your policy is ACCEPT and you are done, make sure its really tcp you are looking for, most games uses udp..
Any modem/router in the way?

Should this work, then?
$ sudo iptables -A INPUT -p udp --dport 27015 -j ACCEPT


This is what my IPTables looks like:
Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:27015 ACCEPT udp -- anywhere anywhere udp dpt:27015 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:http


There shouldn't be any modem or router in the way, this is a hosted VPS.
Blaquicat 8 Dec, 2015 @ 5:08am 
Should work!

Must be another thing..
< >
Showing 1-10 of 10 comments
Per page: 1530 50