MidLevel / MLAPI.Puncher

MLAPI.Puncher is a lightweight, cross-platform, easy to use implementation of NAT punchthrough.
MIT License
90 stars 20 forks source link

Won't Punch / Question #2

Open t3therdev opened 4 years ago

t3therdev commented 4 years ago

We have compiled the client and server examples.

We have a server (A) with a public ip behind a restricted cone nat. Our client (B) is behind a restricted cone as well. We have the Punch Server Host set to the public ip of (A) and we even opened the firewall port to 6776

On our client when we run the compiled console app, we get asked: [CONNECTOR] Enter the address of the listener you want to punch:

Which ip is this referencing?

Our goal is to simply create a punch / connection from B to A so that we can then proxy services from B to A as requested by A.

t3therdev commented 4 years ago

Hi, any update on this?

TwoTenPvP commented 4 years ago

You call ListenForPunches on one computer behind one network. Then you call Punch on another computer on a different network, you pass the IP of the network where the "ListenForPunches" computer is located. This will punch a hole in the listeners NAT with the help of the punch server.