Friday Facts #99 - MP forwarding

Regular reports on Factorio development.
roothorick
Long Handed Inserter
Long Handed Inserter
Posts: 92
Joined: Mon Aug 11, 2014 5:22 am
Contact:

Re: Friday Facts #99 - MP forwarding

Post by roothorick »

I feel like you're throwing in the towel too soon on the NAT-not-NAT scenario. It's pretty easy to detect.

Assuming A and S are already connected.

1. B tries to connect to S. S handshakes with B and tells B about A and A about B.
2. A sends the handshake to B; at the same time, B sends the handshake to A.
3. B gets the handshake from A, but from S's IP on a different port. A doesn't get the handshake from B.
4. B retries the handshake to A with the address the packet actually came from.
5. A gets the handshake this time, and responds with a second handshake.
6. B gets the second handshake.
7. B forgets the address for A provided by S, and instead uses the address+port that A actually responded to. Setup now proceeds normally.

Given, there isn't a huge gain if they're just on a LAN but there's big gains to be had if there's a VPN involved or goofy firewall settings.

Ojelle
Fast Inserter
Fast Inserter
Posts: 143
Joined: Thu Feb 12, 2015 9:21 am
Contact:

Re: Friday Facts #99 - MP forwarding

Post by Ojelle »

Guys, are you ready for friday fact number hundreeeed!
Choumiko wrote:
sillyfly wrote:kovarex just posted the thread... but with #118 in the title. I think they had too much beer :D
It's a wonder how good the game is, if you consider how bad they are with the FFF numbers :mrgreen:

User avatar
cpy
Filter Inserter
Filter Inserter
Posts: 839
Joined: Thu Jul 31, 2014 5:34 am
Contact:

Re: Friday Facts #99 - MP forwarding

Post by cpy »

Just this :P
Image
^CLICK^

Neotix
Filter Inserter
Filter Inserter
Posts: 599
Joined: Sat Nov 23, 2013 9:56 pm
Contact:

Re: Friday Facts #99 - MP forwarding

Post by Neotix »

My keyboard will die soon.
GIF

Post Reply

Return to “News”