I recently set up a private server on my Synology NAS.
The server runs in a Docker container (https://github.com/factoriotools/factorio-docker).
The version of the game is 'stable' (0.17.79), so the currently up to date version.
My router forwards UPD Port 34197 and TCP Port 27015 from anywhere outside to the internal IP of my smart NAS.
The smart NAS is configured to map those ports to the Docker container.
Basically I did all the settings identically to setting up a Minecraft and a Terraria server, which both work.
But still I cannot connect to the server, when I enter my external IP. (even when my client is not in the same network as the server, to exclude any issues there)
On the other hand, if the client is in the same network and I enter the internal IP of the smart NAS, I can connect to the server.
So the question is:
Why could the connection to the server not be established via Internet?
I am somewhat clueless where to look for the issue.
The server config contains a username and the token.
It is set to public and is shown in the public server list. (But not ping-able)
Here is the server log:
Code: Select all
+ 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
usermod: no changes
+ 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 wc '*.zip' -l-mindepth
1
+ NRSAVES=1
+ [[ false != true ]]
+ [[ 1 == 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
+ [[ 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 aT9ahs6quaeghei --server-id /factorio/config/server-id.json --start-server-load-latest
0.000 2020-06-21 15:21:02; Factorio 0.17.79 (build 47865, 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 Read data path: /opt/factorio/data
0.000 Write data path: /factorio [24651607/27454529MB]
0.000 Binaries path: /opt/factorio/bin
0.014 System info: [CPU: Intel(R) Celeron(R) CPU J3455 @ 1.50GHz, 4 cores, RAM: 7802 MB]
0.014 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.014 Running in headless mode
0.019 Loading mod core 0.0.0 (data.lua)
0.132 Loading mod base 0.17.79 (data.lua)
0.571 Loading mod base 0.17.79 (data-updates.lua)
0.800 Checksum for core: 2035938594
0.801 Checksum of base: 4156627525
1.181 Prototype list checksum: 2767119397
1.260 Info PlayerData.cpp:68: Local player-data.json available, timestamp 1592752787
1.260 Info PlayerData.cpp:75: Cloud player-data.json unavailable
1.264 Factorio initialised
1.266 Info ServerSynchronizer.cpp:30: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
1.266 Info ServerMultiplayerManager.cpp:776: updateTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
1.266 Info ServerMultiplayerManager.cpp:776: updateTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
1.266 Loading map /factorio/saves/_autosave1.zip: 620134 bytes.
1.288 Loading level.dat: 1632179 bytes.
1.295 Info Scenario.cpp:187: Map version 0.17.79-0
1.368 Loading script.dat: 328 bytes.
1.373 Checksum for script /factorio/temp/currently-playing/control.lua: 3265260072
1.376 Info UDPSocket.cpp:27: Opening socket at (IP ADDR:({0.0.0.0:34197}))
1.376 Hosting game at IP ADDR:({0.0.0.0:34197})
1.376 Info HttpSharedState.cpp:54: Downloading https://auth.factorio.com/generate-server-padlock-2
1.944 Info AuthServerConnector.cpp:109: Obtained serverPadlock for serverHash (vMtRui7arob4lTOUHD37tYyHEFq05K2M) from the auth server.
1.944 Info ServerMultiplayerManager.cpp:776: updateTick(869) changing state from(CreatingGame) to(InGame)
2.054 Info ServerRouter.cpp:618: Asking pingpong servers (pingpong1.factorio.com:34197, pingpong2.factorio.com:34197, pingpong3.factorio.com:34197, pingpong4.factorio.com:34197) for own address
2.054 Info UDPSocket.cpp:39: Opening socket for broadcast
2.055 Info RemoteCommandProcessor.cpp:131: Starting RCON interface at IP ADDR:({0.0.0.0:27015})
2.055 Info Main.cpp:938: Maximum segment size = 100; minimum segment size = 25; maximum-segment-size peer count = 10; minimum-segment-size peer count = 20
2.174 Info ServerRouter.cpp:497: Own address is IP ADDR:({CORRECT_IP:34197}) (confirmed by pingpong1)
2.191 Info ServerRouter.cpp:497: Own address is IP ADDR:({CORRECT_IP:34197}) (confirmed by pingpong3)
2.360 Info ServerRouter.cpp:497: Own address is IP ADDR:({CORRECT_IP:34197}) (confirmed by pingpong4)
2.863 Info MatchingServer.cpp:114: Matching server game `7612242` has been created.
2.879 Info ServerMultiplayerManager.cpp:705: Matching server connection resumed
Kind Regards,
Ahnde