[1.1.57][Solved]Ubuntu Docker server Hosting Can't Establish Connection

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
NJackson
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Apr 28, 2022 4:28 am
Contact:

[1.1.57][Solved]Ubuntu Docker server Hosting Can't Establish Connection

Post by NJackson »

Alright here goes nothing: Currently pulling my hair out trying to run a dedicated host:

System is Ubuntu Focale 20.04, running latest docker version and the Factorio Docker image (This One: https://hub.docker.com/r/factoriotools/factorio). All behind a PfSense router.
Port Forwarding and Outbound rule have been set with the correct port and local IP address (And cleared states).
The server itself returns the right public IP address with the correct port when started (All 3 pingpong connection return without problem).
PfSense logs shows the traffic going trough the port forward.
Local firewall is turned off (Windows 10), both on the same network and on a laptop running off hotspot.
Server is visible in the public game browser, but ping marks "Unreachable".
Again and again, when attempting to connect, either via the browser or direct address, its "Couldn't establish network connection to server"

No mods installed, linked server-config and port forward/outbound

Help
Attachments
Port-Forward.PNG
Port-Forward.PNG (90.85 KiB) Viewed 707 times
Outbound.PNG
Outbound.PNG (81.24 KiB) Viewed 707 times
server-config.txt
(3.06 KiB) Downloaded 63 times
log.txt
(5.11 KiB) Downloaded 61 times
Last edited by NJackson on Fri Apr 29, 2022 12:34 am, edited 1 time in total.

NJackson
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Apr 28, 2022 4:28 am
Contact:

Re: [1.1.57]Ubuntu Docker server Hosting Can't Establish Connection

Post by NJackson »

[Solved]

Had to recreate the container connecting it to host network
Create line goes as such:
"sudo docker run -d -p 34197:34197/udp -p 27015:27015/tcp -v /opt/factorio:/factorio --network host --name factorio --restart=always factoriotools/factorio"

Hope this helps others

Post Reply

Return to “Technical Help”