I have setup a the Factorio Server at home on my dedicated NAS system. UnRaid 6.10.3
The Server uses my Name and auth-token to make it available for public access.
I switched between ichs777 docker and the now maintainging "factoriotools" between and forth. (https://github.com/factoriotools/)
I left the standard ports 34197 UDP and 27015 TCP as is and both are forwarded in my router.
Also UPnP is activ on UnRaid and router if that makes a difference.
The server is set to publish to public and LAN, and can be seen from my and other machines on LAN and public.
All machines can connect via LAN/Local IP Address.
Nobody can connect via the "Browse public server" or via the public ip address.
I have read on the github and in this post, about some issues with some kind of internal proxy docker is using. There suggestion was to start the container with: --userland-proxy=false but that always corrupts the container and i have to reinstall it again.
https://forums.factorio.com/viewtopic.php?f=49&t=35255
+ FACTORIO_VOL=/factorio
+ LOAD_LATEST_SAVE=true
+ GENERATE_NEW_SAVE=false
+ SAVE_NAME=
+ BIND=
+ mkdir -p /factorio
+ mkdir -p /factorio/saves
+ mkdir -p /factorio/config
+ mkdir -p /factorio/mods
+ mkdir -p /factorio/scenarios
+ mkdir -p /factorio/script-output
+ [[ ! -f /factorio/config/rconpw ]]
+ [[ ! -f /factorio/config/server-settings.json ]]
+ [[ ! -f /factorio/config/map-gen-settings.json ]]
+ [[ ! -f /factorio/config/map-settings.json ]]
++ find -L /factorio/saves -iname '*.tmp.zip' -mindepth 1
++ wc -l
+ NRTMPSAVES=0
+ [[ 0 -gt 0 ]]
+ [[ '' == \t\r\u\e ]]
++ id -u
+ [[ 0 = 0 ]]
+ usermod -o -u 845 factorio
+ groupmod -o -g 845 factorio
+ chown -R factorio:factorio /factorio
+ SU_EXEC='su-exec factorio'
+ sed -i '/write-data=/c\write-data=\/factorio/' /opt/factorio/config/config.ini
++ find -L /factorio/saves -iname '*.zip' -mindepth 1
++ wc -l
+ NRSAVES=3
+ [[ false != true ]]
+ [[ 3 == 0 ]]
+ [[ false == true ]]
+ FLAGS=(--port "$PORT" --server-settings "$CONFIG/server-settings.json" --server-banlist "$CONFIG/server-banlist.json" --rcon-port "$RCON_PORT" --server-whitelist "$CONFIG/server-whitelist.json" --use-server-whitelist --server-adminlist "$CONFIG/server-adminlist.json" --rcon-password "$(cat "$CONFIG/rconpw")" --server-id /factorio/config/server-id.json)
++ cat /factorio/config/rconpw
+ '[' -n '' ']'
+ [[ true == true ]]
+ FLAGS+=(--start-server-load-latest)
+ exec su-exec factorio /opt/factorio/bin/x64/factorio --port 34197 --server-settings /factorio/config/server-settings.json --server-banlist /factorio/config/server-banlist.json --rcon-port 27015 --server-whitelist /factorio/config/server-whitelist.json --use-server-whitelist --server-adminlist /factorio/config/server-adminlist.json --rcon-password eabo8ohtahJoh3e --server-id /factorio/config/server-id.json --start-server-load-latest
usermod: no changes
0.000 2022-10-26 14:01:27; Factorio 1.1.70 (build 60152, linux64, headless)
0.000 Operating system: Linux
0.000 Program arguments: "/opt/factorio/bin/x64/factorio" "--port" "34197" "--server-settings" "/factorio/config/server-settings.json" "--server-banlist" "/factorio/config/server-banlist.json" "--rcon-port" "27015" "--server-whitelist" "/factorio/config/server-whitelist.json" "--use-server-whitelist" "--server-adminlist" "/factorio/config/server-adminlist.json" "--rcon-password" <private> "--server-id" "/factorio/config/server-id.json" "--start-server-load-latest"
0.000 Config path: /opt/factorio/config/config.ini
0.001 Read data path: /opt/factorio/data
0.001 Write data path: /factorio [606395/8581970MB]
0.001 Binaries path: /opt/factorio/bin
0.012 System info: [CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 8 cores, RAM: 11856 MB]
0.012 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<unset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset> __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
0.012 Running in headless mode
0.019 Loading mod core 0.0.0 (data.lua)
0.054 Loading mod base 1.1.70 (data.lua)
0.335 Loading mod base 1.1.70 (data-updates.lua)
0.428 Checksum for core: 2752837659
0.428 Checksum of base: 4211423066
0.652 Prototype list checksum: 3034860339
0.693 Info PlayerData.cpp:71: Local player-data.json available, timestamp 1666792415
0.693 Info PlayerData.cpp:78: Cloud player-data.json unavailable
0.698 Factorio initialised
0.701 Info ServerSynchronizer.cpp:29: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
0.702 Info ServerMultiplayerManager.cpp:795: updateTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
0.702 Info ServerMultiplayerManager.cpp:795: updateTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
0.702 Loading map /factorio/saves/save.zip: 558010 bytes.
0.759 Loading level.dat: 1023954 bytes.
0.763 Info Scenario.cpp:199: Map version 1.1.70-1
0.780 Loading script.dat: 1182 bytes.
0.791 Checksum for script /factorio/temp/currently-playing/control.lua: 2881393120
0.793 Info UDPSocket.cpp:27: Opening socket at (IP ADDR:({0.0.0.0:34197}))
0.793 Hosting game at IP ADDR:({0.0.0.0:34197})
0.794 Info ServerMultiplayerManager.cpp:795: updateTick(0) changing state from(CreatingGame) to(InGame)
0.794 Info UDPSocket.cpp:39: Opening socket for broadcast
0.795 Error InterruptibleStdioStream.cpp:61: Got EOF on stdin; closing
0.795 Info RemoteCommandProcessor.cpp:130: Starting RCON interface at IP ADDR:({0.0.0.0:27015})
0.795 Info CommandLineMultiplayer.cpp:292: Maximum segment size = 100; minimum segment size = 25; maximum-segment-size peer count = 10; minimum-segment-size peer count = 20
I am really not sure if a container issue or a docker one to be honest.
As far as i can tell the port forwarding on my router is working correctly. I have no issues opening ports for UnRaids build in Wireguard VPN.