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

Turn server #13

Open
chrisooo3 opened this issue Feb 8, 2021 · 4 comments
Open

Turn server #13

chrisooo3 opened this issue Feb 8, 2021 · 4 comments

Comments

@chrisooo3
Copy link

chrisooo3 commented Feb 8, 2021

Hi @samyk
Have you been thinking about using a turn server to establish a connection between two machines behind NAT?
If not could you explain why?

@samyk
Copy link
Owner

samyk commented Feb 8, 2021

Hi @chrisooo3, do you mean behind the same NAT? If they were behind the same NAT, they could just talk directly. If you mean behind two separate NATs, then yes, that's what TURN is designed for but I'm not sure how you're suggesting it be applied here. Will you provide more context?

@chrisooo3
Copy link
Author

@samyk I mean behind two separate NATs.

I would like to use stun to connect to device which is outside of my network.

@samyk
Copy link
Owner

samyk commented Feb 8, 2021

STUN and TURN will allow you to do that, though I don't think the slipstream technique is relevant. You may also be interested in other P2P technologies like https://samy.pl/pwnat/ which I hope to be releasing a modernized version of soon around a new technique. The benefit there is no dependence on a 3rd party server (such as a TURN or STUN server), however it will have much lower reliability than purpose-built relay protocols like TURN.

@chrisooo3
Copy link
Author

@samyk I have already running server in LAN behind the nat. So it is not reachable from outside.

How can I use stun server to obtain the public ip address of this web server, which is behind router and nat?

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