You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sample included in the repo, "HolePunchServerTest", has a demonstration that does everything in one class (server/relay and two clients).
I'm attempting to separate this logic so I can run a gateway/relay and two individual clients.
While the sample runs fine with ":11" (localhost) as the master server endpoint for "SendNatIntroduceRequest", it doesn't appear to work well when I attempt to use my own public IP as the master server.
The firewall is open on the port, so that should be fine.
In the sample, I get the initial "NatIntroductionSuccess", but the c1.Connect(point, ConnectionKey); fails with this: PeerDisconnected: ConnectionFailed
So the question is two parts:
Is this suppose to work when running all locally, meaning both the master/gateway/relay and the two clients?
Is there other examples of NAT punch usage? I have searched GitHub and found a few, but nothing that appears to help me.
I have debugged this for a few days now and not been able to find a workable solution. My needs are:
Relay/Gateway that Clients connect to and exchange some messages.
Client can initiate UDP punch through to another Client connected to the relay.
Library version:
Latest NuGet and from source
Framework:
.NET Core 3 (acts same on .NET Framework)
OS:
Windows
The text was updated successfully, but these errors were encountered:
The sample included in the repo, "HolePunchServerTest", has a demonstration that does everything in one class (server/relay and two clients).
I'm attempting to separate this logic so I can run a gateway/relay and two individual clients.
While the sample runs fine with ":11" (localhost) as the master server endpoint for "SendNatIntroduceRequest", it doesn't appear to work well when I attempt to use my own public IP as the master server.
The firewall is open on the port, so that should be fine.
In the sample, I get the initial "NatIntroductionSuccess", but the c1.Connect(point, ConnectionKey); fails with this: PeerDisconnected: ConnectionFailed
So the question is two parts:
Is this suppose to work when running all locally, meaning both the master/gateway/relay and the two clients?
Is there other examples of NAT punch usage? I have searched GitHub and found a few, but nothing that appears to help me.
I have debugged this for a few days now and not been able to find a workable solution. My needs are:
Relay/Gateway that Clients connect to and exchange some messages.
Client can initiate UDP punch through to another Client connected to the relay.
Library version:
Latest NuGet and from source
Framework:
.NET Core 3 (acts same on .NET Framework)
OS:
Windows
The text was updated successfully, but these errors were encountered: