HomeWildfire Games

Implement a workaround for routers without NAT loopback.

Description

Implement a workaround for routers without NAT loopback.

This allows joining a lobby game hosted on the same network (behind the same NAT gateway).
This is relatively primitive to keep things simple: if the server and the client have the same public IP, it is assumed that they are on the same network and the client instead requests the local IP.

Differential Revision: https://code.wildfiregames.com/D3944

Event Timeline

Langbart raised a concern with this commit.May 21 2021, 5:22 PM
Langbart added a subscriber: Langbart.

As of this changeset, I am no longer able to have two instances on my computer and join an MP game in the lobby. I have tried with and without STUN and port forwarding, but always end up with a UDP error.

This commit now has outstanding concerns.May 21 2021, 5:22 PM
wraitii requested verification of this commit.May 22 2021, 10:35 AM
This commit now requires verification by auditors.May 22 2021, 10:35 AM
This commit no longer requires audit.May 22 2021, 2:35 PM