zomboid-dedicated-server icon indicating copy to clipboard operation
zomboid-dedicated-server copied to clipboard

Server not showing up and can't be connected to

Open pcbmaster opened this issue 2 years ago • 8 comments

Having issues with the docker image. Everything seems to work fine, getting all the way to the end, ports are open, but I can't directly connect to the server, nor can I see it in the list.

version: "3.3"
services:
  zomboid:
    image: renegademaster/zomboid-dedicated-server:latest
    volumes:
      - /root/zomboid/ZomboidDedicatedServer:/home/steam/ZomboidDedicatedServer:rw
      - /root/zomboid/ZomboidConfig:/home/steam/Zomboid:rw
    ports:
      - 16261:16261
      - 16262:16262
    environment:
      ADMIN_PASSWORD: "blabla"
      ADMIN_USERNAME: "redacted"
      SERVER_NAME: "Me Server"
      SERVER_PASSWORD: "password"

apologies if it's something really obvious, but I followed all the instructions, including making the folders.

pcbmaster avatar Nov 12 '22 07:11 pcbmaster

Hi, @pcbmaster!

Out of interest, does it work if you also expose (and Port-Forward) the port 8766? I removed it because according to the docs, it was no longer required, but maybe that was a mistake on behalf of the documentation.

Renegade-Master avatar Nov 12 '22 18:11 Renegade-Master

Also, when you created this issue, you must have deleted the template that I requested you to fill out. Not filling this out makes it harder for me to understand your issue. image

Renegade-Master avatar Nov 12 '22 18:11 Renegade-Master

Sorry boss, I used the blank issue.

Describe the bug Docker container seemingly spins up fine, but server cannot be reached nor seen in the server listing.

To Reproduce Steps to reproduce the behavior:

  1. Create the user folders
  2. Use the above docker-compose file

Expected behavior Server should at least be reachable by direct IP, ideally show up in the server listings.

Desktop (please complete the following information):

  • OS: Debian 7
  • Docker version 20.10.5+dfsg1, build 55c4c88
  • Image Version latest

Additional context All ports are open on the machine, adding 8766 did not solve the issue.

pcbmaster avatar Nov 12 '22 21:11 pcbmaster

I also am having this issue - forwarding the suggested port 8766 isn't working either.

donovanvanheerden avatar Nov 14 '22 08:11 donovanvanheerden

The current version is working for me.

I ran this command:

docker run --detach \                    
       --mount type=bind,source="$(pwd)/ZomboidDedicatedServer",target=/home/steam/ZomboidDedicatedServer \
       --mount type=bind,source="$(pwd)/ZomboidConfig",target=/home/steam/Zomboid \
       --publish 16261:16261/udp --publish 16262:16262/udp --publish 27015:27015/tcp \
       --name zomboid-server \
       docker.io/renegademaster/zomboid-dedicated-server:2.3.0

It produced the following logs: zomboid-server-20221114T193048Z.log

This was it visible from my server browser: image

I was able to join successfully.

Edit: I took a screenshot after having shut the server down for some reason. Updated with correct logs and screenshot.

Renegade-Master avatar Nov 14 '22 19:11 Renegade-Master

Having issues with the docker image. Everything seems to work fine, getting all the way to the end, ports are open, but I can't directly connect to the server, nor can I see it in the list.

version: "3.3"
services:
  zomboid:
    image: renegademaster/zomboid-dedicated-server:latest
    volumes:
      - /root/zomboid/ZomboidDedicatedServer:/home/steam/ZomboidDedicatedServer:rw
      - /root/zomboid/ZomboidConfig:/home/steam/Zomboid:rw
    ports:
      - 16261:16261
      - 16262:16262
    environment:
      ADMIN_PASSWORD: "blabla"
      ADMIN_USERNAME: "redacted"
      SERVER_NAME: "Me Server"
      SERVER_PASSWORD: "password"

apologies if it's something really obvious, but I followed all the instructions, including making the folders.

Is this your actual docker-compose.yaml file? If so, you are forwarding TCP ports, not UDP ports. The example docker-compose file that I provide in this repo represents them in the "full form" which is more verbose.

Change it to the following:

version: "3.3"
services:
  zomboid:
    image: renegademaster/zomboid-dedicated-server:latest
    volumes:
      - /root/zomboid/ZomboidDedicatedServer:/home/steam/ZomboidDedicatedServer:rw
      - /root/zomboid/ZomboidConfig:/home/steam/Zomboid:rw
    ports:
-      - 16261:16261
-      - 16262:16262
+      - 16261:16261/udp
+      - 16262:16262/udp
    environment:
      ADMIN_PASSWORD: "blabla"
      ADMIN_USERNAME: "redacted"
      SERVER_NAME: "Me Server"
      SERVER_PASSWORD: "password"

Renegade-Master avatar Nov 14 '22 19:11 Renegade-Master

The UDP forwarding in hindsight is pretty obvious, but this still didn't work until I explicitly set USE_STEAM: "true" Documentation seems to suggest this should default to true, but that doesn't seem to be the case.

pcbmaster avatar Nov 14 '22 22:11 pcbmaster

I wonder if this is related to 41

xBeEatNUx avatar Nov 14 '22 23:11 xBeEatNUx