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

Impossible to implement STUN on a listen socket? #83

Closed
eddiejames opened this issue Dec 13, 2019 · 2 comments
Closed

Impossible to implement STUN on a listen socket? #83

eddiejames opened this issue Dec 13, 2019 · 2 comments

Comments

@eddiejames
Copy link

I could easily be missing something, but I don't see how to use STUN (or similar) to get my public IP on a listen socket. The library doesn't allow me to start an outbound connection from a listen socket, therefore I cannot ping a STUN server. If I start a new connection to do so, I'll get my public IP with the incorrect port. And I cannot simply then use the local port number of the listen socket because the NAT may map it differently. Any suggestions? The readme suggests this is possible?

I did see #64 but that's for in-library implementation I think?

@zpostfacto
Copy link
Contributor

Yeah, I am interested in making something relatively high level and turnkey (get it!?!?) right now. I don't think it's possible to manually put STUN/TURN in front and then somehow pass it off to this layer.
I don't know when this will rise in priority to actually get implemented. Hopefully this year. :(

@eddiejames
Copy link
Author

No problem, thanks for letting me know. I did manage to implement it with some pretty rough hacks: https://github.com/eddiejames/GameNetworkingSockets/tree/dev

Obviously not ideal, but it is functional if anyone else needs it ASAP and doesn't mind the mess.

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