factoriotools / factorio-docker

Factorio headless server in a Docker container
https://hub.docker.com/r/factoriotools/factorio/
MIT License
909 stars 220 forks source link

factorio could not establish connection #400

Closed jaschuu closed 2 years ago

jaschuu commented 3 years ago

Hello, I am trying to resolve a problem with the factorio container,

I've open port udp 34197, nothing else is using this port.

how ever I can not join my game via the lan or public games menus,

lan and public both set to true in the config

I can see my game in the public games,

I can not see it in the lan games

my friend can also see the game in the public list and also gets the

Could not establish network communication with server.

we can both connect directly via ip:port.

I get these errors/warnings in the log when the server start

1.539 Error InterruptibleStdioStream.cpp:61: Got EOF on stdin; closing

1.742 Warning ServerRouter.cpp:519: Received own address message reply with conflicting address (got IP ADDR:({199.186.5.96:29942}), expected IP ADDR:({199.186.5.96:18489})) 1.742 Warning ServerMultiplayerManager.cpp:628: Determining own address has failed. Best guess: IP ADDR:({199.186.5.96:18489}) 1.776 Warning ServerRouter.cpp:519: Received own address message reply with conflicting address (got IP ADDR:({199.186.5.96:32225}), expected IP ADDR:({199.186.5.96:18489})) 1.826 Warning ServerRouter.cpp:519: Received own address message reply with conflicting address (got IP ADDR:({199.186.5.96:44284}), expected IP ADDR:({199.186.5.96:18489}))

ip addresses above changed for privacy,

any ideas how to fix this please?

thanks

jaschuu commented 2 years ago

the above problem has to do with pfsense, you need to goto nat / outbound / change it to hybrid then add a rule that gives factorio a static port.