Didstopia / rust-server

Provides a dedicated linux server for Rust (the game) running inside a Docker container.
MIT License
243 stars 105 forks source link

Cannot add server as a favourite #134

Open mooseh opened 1 month ago

mooseh commented 1 month ago

Describe the bug so i've got the server up and running and i can see the server in the rust public server list, however i cannot add the server to favourites and i cannot see the servers ping, my server doesn't block ICMP.

when I try to add the server to my favourites I get the message 'Server "my server" has no favourite endpoint! will favourite by IP and port only' and the steam Game Servers UI just says 185.103.96.88:28016 <not responding>

To Reproduce Steps to reproduce the behavior: run the server on a public IP like so

  server1:
    container_name: server1
    image: didstopia/rust-server
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - RUST_SERVER_NAME=my server
      - RUST_SERVER_STARTUP_ARGUMENTS=-batchmode -load -nographics +server.secure 1 +app.listenip 185.103.96.88 +app.publicip 185.103.96.88
      - RUST_SERVER_IDENTITY=saved
      - RUST_SERVER_PORT=28015
      - RUST_SERVER_QUERYPORT=28016
      - RUST_RCON_PORT=28016
      - RUST_APP_PORT=28082
      - RUST_SERVER_SEED=24203
      - RUST_SERVER_WORLDSIZE=3500
      - RUST_SERVER_MAXPLAYERS=50
      #- RUST_SERVER_DESCRIPTION=(NULL) ''
      - RUST_SERVER_URL=firestone.rustrangers.net
      #- RUST_SERVER_BANNER_URL=(NULL) ''
      - RUST_SERVER_SAVE_INTERVAL=600
      - RUST_RCON_WEB=1
      - RUST_RCON_PASSWORD=changeme
      #- RUST_BRANCH=(NULL) ''
      - RUST_UPDATE_CHECKING=1
      - RUST_UPDATE_BRANCH=public
      - RUST_START_MODE=0
      - RUST_OXIDE_ENABLED=1
      - RUST_OXIDE_UPDATE_ON_BOOT=1
      - RUST_RCON_SECURE_WEBSOCKET=0
      - RUST_HEARTBEAT=0
     # - RUST_RCON_HOSTNAME=(NULL) ''
    ports:
      - "28015:28015/tcp"
      - "28015:28015/udp"
      - "28016:28016"
      - "28082:28082"
    volumes:
      - "/home/mooseh/servers/1/rust:/steamcmd/rust"
    networks:
      - global
    mem_limit: 16G
    restart: unless-stopped

networks:
    global:
      external: true

volumes:
    servers:
        external: true

Expected behavior I expect to be able to add the server to favourites and see its ping

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context im wondering if this is a natting issue, maybe I need to make the serve run on net: host?

also if i add +server.ip 185.103.96.88 it fails to start as that IP is not binded to a network interface in docker

mooseh commented 1 month ago

I have no idea why but running the container with the additional port defined - 28016/udp was the answer, im guessing query protocol is also over udp, might wanna add this to the docs.