Closed anthonee619 closed 4 years ago
You need to add 7777 to the ports being forwarded by docker. Also, the game server binds to the UDP ports (there is no such thing as listen for UDP).
Thank you. This seems to have fixed the issue!
Did ark change the default port bindings recently?
Yes, in update 311.x, the ARK server went from only binding to Port + 1 to binding to both Port and Port + 1, with clients now using Port instead of Port + 1.
Gotcha, so I still need to have port 7778 open as well.
I seem to be running into this issue as well but I am forwarding ports 7777, 7778 and 27015 on TCP and UDP
It seems the docker container sets the game port one lower than what you configure it to in the env vars. š¤¦ Fixed it by changing my env from 7777 to 7778
If the docker container is using an up-to-date armanager, you should be able to add arkNoPortDecrement="true"
to your arkmanager config.
From the README:
Setting | Description |
---|---|
arkNoPortDecrement=" |
True if theĀ PortĀ option should be passed untouched. False for the old behaviour of decrementing theĀ Port. |
I am running my server on a Ubuntu 18.04 machine with the following docker image boerngenschmidt/ark-docker.
The image was built with arkmanager v1.6, however, I upgrade to the most current version with
host-machine $ docker exec -it ark bash
and thendocker-container $ arkmanager upgrade-tools
within the docker container itself.Everything was running smoothly until a couple of days ago, in which I am no longer able to connect to the server. When attempting to connect to the server in Ark's server browser I am getting a
Connection Timeout
error message. I don't have any mods installed on my server, so that should not cause any problems.The ports I have open are the default ports recommended by the docker image. (Ark server ports 7778 and 27015 udp/tcp, and RCON port 32330 tcp) Also, the firewall on the machine is disables since this server is behind a firewall on my network.
docker-container $ arkmanager status
output is:Note: Server online eventually switches to yes and has the URLs it is supposed to provide.
My initial step was to make sure that my host machine is listening to all the ports. And I used the following command to check this.
host-machine $ sudo lsof -i | grep docker
output is:From this output I believe that the host machine is listening to the ports correctly. And according to this; it being IPv6 is not the issue because linux will open both IPv6 and IPv4 ports.
I then wanted to make sure that the docker container is listening to the correct ports, and used this resource and ran:
to get the PID for the container and use the resulting PID in the following command: Note: I switched
netstat -na
from the resource I provided tolsof -i
in order to keep outputs of the host machine and docker similar.which output is:
As you can see only port 32330 is being listened to inside the docker container, which leads me to believe that the Ark server script is not binding to ports 7778 and 27015.
Connection Timeout
errors when trying to connect?Any help is appreciated as even running a new docker container does not seem to fix the issues.