diff --git a/Fika.Core/Networking/FikaPingingClient.cs b/Fika.Core/Networking/FikaPingingClient.cs index 02219563..81b1b564 100644 --- a/Fika.Core/Networking/FikaPingingClient.cs +++ b/Fika.Core/Networking/FikaPingingClient.cs @@ -127,7 +127,7 @@ public void OnNetworkReceiveUnconnected(IPEndPoint remoteEndPoint, NetPacketRead if (reader.TryGetString(out string result)) { - if (result == "fika.hello") + if (result == "fika.hello" || result == "fika.punchnat") { Received = true; MatchmakerAcceptPatches.RemoteIp = remoteEndPoint.Address.ToString(); diff --git a/Fika.Core/Networking/NatPunch/NatPunchUtils.cs b/Fika.Core/Networking/NatPunch/NatPunchUtils.cs index 8ec53813..eb4cf972 100644 --- a/Fika.Core/Networking/NatPunch/NatPunchUtils.cs +++ b/Fika.Core/Networking/NatPunch/NatPunchUtils.cs @@ -64,7 +64,7 @@ public static void PunchNat(NetManager netManager, IPEndPoint endPoint) { // bogus punch data var resp = new NetDataWriter(); - resp.Put(9999); + resp.Put("fika.punchnat"); // send a couple of packets to punch a hole for (int i = 0; i < 10; i++)