Factorio Can't Connect to Server? Here's the Fix
Factorio multiplayer runs entirely over UDP port 34197 — it does not use TCP at all, so forwarding TCP 34197 does nothing. The 'couldn't establish network communication with server' error is almost always that UDP port being blocked, or a router that randomises the outbound source port.
Exact details for Factorio
Error codes
Couldn't establish network communication with server
UDP 34197 isn't reaching the host
Cause: Port not forwarded, or firewall/AV dropping UDP packets.
- Forward external UDP 34197 to internal UDP 34197 on the server's LAN IP — protocol must be UDP, not TCP.
- Create an inbound UDP 34197 firewall rule (or allow the Factorio executable); both OS firewall and router must agree.
- Temporarily disable antivirus packet filtering to confirm it isn't dropping UDP.
Server hosts fine but remote players time out
Router mangles the source port
Cause: NAT randomises outbound source port on UDP.
- Enable the static-port option on the outbound NAT rule so 34197 isn't rewritten.
- Copy-paste the server address rather than typing it — a wrong digit reads as a timeout.
Port 34197 forwarded but ISP still blocks it
ISP filters common game ports
Cause: Carrier-level port blocking.
- Change the server to a high-numbered port such as UDP 54197 and forward that instead.
- Verify with an external UDP port checker while the server is running.
Fixes that work for most Factorio errors
- Forward UDP 34197 (never TCP) to the server's LAN IP.
- Add an inbound UDP 34197 firewall rule or allow factorio.exe.
- Enable static-port NAT so the router doesn't randomise the source port.
- Disable AV packet filtering to test.
- If the ISP blocks 34197, switch to 54197.
- Copy-paste the server address to avoid typos.
FAQ
What port does Factorio multiplayer use?
UDP port 34197 for all game traffic. Factorio does not use TCP, so opening TCP 34197 will not let anyone join — the forward and firewall rule must be UDP.
How do I fix 'couldn't establish network communication with server' in Factorio?
Forward UDP 34197 to the host, add a matching inbound UDP firewall rule, and make sure antivirus isn't dropping the packets. If your router randomises outbound source ports, enable the static-port NAT option.
My ISP seems to block Factorio's port — what now?
Move the server to a high-numbered UDP port like 54197 and forward that instead of 34197, then verify it with an external UDP port checker.
Other games
- Darktide Can't Connect / Backend Error? Fix Codes 2001, 3001, 4008 (2026)
- Helldivers 2 "Failed to Join Game"? Fix Quickplay & Connect (2026)
- Nightingale Can't Connect to Server? Fix Co-op & Realm Join (2026)
- Once Human Can't Connect to Server? Fix Connection Timeout (2026)
- Payday 3 Matchmaking Not Working? Fix "Failed to Join" (2026)
- Space Marine 2 Co-op Not Working? Fix Operations & Connect (2026)
- The First Descendant Connection Error? Fix "Can't Connect" (2026)
- Throne and Liberty Can't Connect to Server? Fix Queue & Login (2026)