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

Not really an issue - ZeroTier #116

Open
Xprogrammer777 opened this issue Jan 20, 2025 · 3 comments
Open

Not really an issue - ZeroTier #116

Xprogrammer777 opened this issue Jan 20, 2025 · 3 comments

Comments

@Xprogrammer777
Copy link

I don't really understands how ZeroTier works, why it doesn't require any account.
I thought it was some kind of tunneling like Ngrok, if it's the case that mean the connection is routed in the server of the repo owner? Someone said it doesn't use any server so I'm really confused.

@s0ftice
Copy link
Member

s0ftice commented Jan 21, 2025

It does require an account.

This is how it works:
if it can establish a direct connection (e.g. CGNAT on both sides), no external server is used to route the traffic through.
if it can't, it needs to use a relayed connection, where it routes the traffic (encrypted) through zerotier's relay servers (not the repo owner's).
You also have the option to set-up your own relay server (called zerotier moon).

@Xprogrammer777
Copy link
Author

Xprogrammer777 commented Jan 21, 2025

if it can establish a direct connection (e.g. CGNAT on both sides), no external server is used to route the traffic through.

STUN? Hole punching? I still don't understand how direct connection work.
Admit the parrot is connected to a 4G LTE network, what address does it uses to connect directly to the phone without any servers

@s0ftice
Copy link
Member

s0ftice commented Jan 22, 2025

zerotier uses a combination of several techniques, yes UDP hole punching being part of it. you can read more about it here https://www.zerotier.com/blog/the-state-of-nat-traversal/

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