Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question re: usage #9

Open
trzy opened this issue Sep 27, 2022 · 3 comments
Open

Question re: usage #9

trzy opened this issue Sep 27, 2022 · 3 comments

Comments

@trzy
Copy link

trzy commented Sep 27, 2022

Hi,

I’m trying to test this out but am a little confused by intended usage. Should this be able to work to connect two clients behind the same NAT?

I’ve set up the server to run on my desktop and am forwarding port 6776. I can bring up the client on the same or another machine at home and when I enter the public IP, I see that the server receives messages (I’ve added logging to confirm).

However, punching fails. Shouldn’t it be possible to test with even just one client because the sample client spawns both a listener thread and then actually attempts the hole punch?

Thank you!

@trzy
Copy link
Author

trzy commented Sep 27, 2022

Note: I understand that hole punching is useful for connecting two machines behind different NATs but I’m just doing some initial testing within a single network.

@TwoTenPvP
Copy link
Member

You don't need to punch the NAT for same network usage, so no this will not work.

@trzy
Copy link
Author

trzy commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants