I just recently bought factorio and i started playing it with a friend.
At the beginning anything was working well (No lag / desync at all for about 30 hours of gameplay), but when a third player joins the game started lagging heavily (debug mode shows a watch next to the ping, so it seems to be something related to the lockstep buffer).
We switched from playing via tunngle to a linux dedicated / headless server (located in a datacenter).
All players and the server are located in the same country and all got a ping of ~40ms to the gameserver.
At the beginning anything was working well with the dedicated server. All 3 players were connected and there was no lag at all (also, the map download was very fast).
But soon, maybe 30 minutes after all players joined the lagging started again.
I did some network monitoring while testing the dedicated server.
At the beginning when everything was fine i had about 4kb/s upstream.
When it started lagging this suddenly jumps up to 100% upload usage of my connection (60kb/s).
We tried changing the latency and enable / disable the peer connections. But nothing helped.
Something really strange i also noticed is that i can reproduce this lag (Stopwatch in debug mode) by connecting to the same server with 2 different computers from my home internet connection.
If i just join with computer 1, all is well. Map download is very fast and there is no lag at all.
When i start connecting with computer 2 the map download is incredibly slow (from 350kb/s down to ~15kb/s) and as soon as im ingame it starts lagging heavily on both clients.
I checked all physical ethernet connections and tested my connection for packet loss as those were my first 2 ideas what could cause this, but thats not the reason.
Does anybody have an idea what to do to solve this problem?
Edit://
Problem solved! Netgear routers have a "DDoS Protection" enabled on default which limited udp-packets to max 60 per second. Disabling it fixed it
