Pleut / abiotic-factor-linux-docker

Docker container for an Abiotic Factor dedicated server using Wine
43 stars 10 forks source link

Query Port issues #6

Open ryaneford opened 2 months ago

ryaneford commented 2 months ago

Hi there,

I'm having issues changing the query port, thus having no luck in the server showing itself on the browser/steam server browser.

I have another server running on another windows server VM so my 7777 and 27015 are occupied and forwarded to that box/ip accordingly and works.

Though I wanted to create another instance with incremental port changes, the docker one using 7778 and 27016 respectively.

For this server I don't seem to have an issue adding 7778 for both host and container (I see the game in the LAN section) but having troubles with the query port...querying :p

I have tried host: 27016 container: 27015 with no success as well as setting both to 27016 but nothing seems to be working.

Is there any advice you can give regarding this?

Pleut commented 2 months ago

To be on the safe side, I have just tried it with a fresh installation and this variant works:

services:
  abiotic-server:
    image: "ghcr.io/pleut/abiotic-factor-linux-docker:latest"
    restart: unless-stopped
    volumes:
      - "./gamefiles:/server"
      - "./data:/server/AbioticFactor/Saved"
    environment:
      - MaxServerPlayers=6
      - Port=7778
      - QueryPort=27016
      - ServerPassword=password
      - SteamServerName=Linux Server
      - UsePerfThreads=true
      - NoAsyncLoadingThread=true
      - WorldSaveName=Cascade
#     - AutoUpdate=true
#     - AdditionalArgs=-SandboxIniPath=Config/WindowsServer/Server1Sandbox.ini
    ports:
      - "0.0.0.0:7778:7778/udp"
      - "0.0.0.0:27016:27016/udp"

If this doesn't work, it's probably a problem with port forwarding outside of Docker.