Mephi00 / v-rising-wine-docker-image

MIT License
53 stars 32 forks source link

Unable to connect #2

Open Johan-Claesson opened 2 years ago

Johan-Claesson commented 2 years ago

Hello! First of all, thanks for making this container! Really appreciate it!

I have an issue with networking, see attached log file from container: image

Does anyone knows what's going on?

Here is my docker-compose file:

version: "3"

services:
  vrising:
    container_name: v-rising
    image: mephi00/v-rising-wine
    volumes:
      - ${APPDATA}/v-rising:/saves
    ports:
      - 9876:9876/udp
      - 9877:9877/udp
    environment:
      - V_RISING_NAME=************
      - V_RISING_DESC=************
      - V_RISING_CLAN_SIZE=10
      - V_RISING_PASSW=************
      - V_RISING_SAVE_NAME=************
      - V_RISING_PUBLIC_LIST=true
      - V_RISING_SETTING_PRESET=Standard PvE Rules
      - PGID=${PGID}
      - PUID=${PUID}
    restart: unless-stopped
#    healthcheck:
#      test: wget -qO - ifconfig.me || exit 1
#      interval: 30s
#      retries: 10
#      start_period: 30s
#      timeout: 10s  

Also the .env file:

TZ=Europe/Stockholm
UMASK=000
PUID=1000
PGID=1000
APPDATA=/games
COMPOSE_PROJECT_NAME=v-rising
Frostea commented 2 years ago

I cannot speak for this specific error, but it is not enough to expose the ports in the docker-compose file. Have you done so on the machine as well? (firewall/router or security group config for AWS).

Mephi00 commented 2 years ago

As Frostea already added, the ports have to be exposed to outside traffic.

I haven‘t seen any of these errors in my own testing. If you have access to the server on a local network, try connecting by using the ip and port in the game.

Johan-Claesson commented 2 years ago

I did some more testing. Got a Win10 VM up and tested installing the server software from scratch using steamCMD, and I got the same error. Before exposing a server out to WAN, I like to test the config on LAN. However, after exposing and connecting trough external IP - everything works for both this container and WIN Native installer.

I'm guessing that you need to set the server in some kind of LAN-Only to be able to use LAN-Connections?

Mephi00 commented 2 years ago

The LAN mode is needed if you want your server to be an offline server with no internet connection. Otherwise I would suspect an issue with your port forwarding.