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

General explanation about tox's p2p? #802

Open
fabionar opened this issue Feb 20, 2018 · 5 comments
Open

General explanation about tox's p2p? #802

fabionar opened this issue Feb 20, 2018 · 5 comments
Labels
P3 Low priority question Questions
Milestone

Comments

@fabionar
Copy link

I know it probably one of the most asked questions. But I can't find a detailed, or even a simple explanation.

How the software identifies an user without revealing the IP if the core idea of tox is p2p, and a centralized identification makes tox not p2p at all?
Also, some informations about that hash functioning (tox ID) and how it replaces the IP sharing would be great to be at FAQ.

@tox-user
Copy link
Member

Your communication is only peer to peer when you talk to your friends. So only your friends can see your IP address. Your client also talks to the DHT, which allows other people to find you and send you friend requests. Here are some explanations:
https://tox.chat/faq.html#how-tox-privacy
https://tox.chat/faq.html#tox-leak-ip
https://tox.chat/faq.html#tox-tracking-dht

@tox-user tox-user added the question Questions label Feb 20, 2018
@SkyzohKey
Copy link

Read more here: http://beta.tox.chat/learn-more / http://beta.tox.chat/support aswell 😋

@SkyzohKey
Copy link

@TokTok/contributors Added this as a Project because we really need to write a better intro text that explains the Tox's philosophy/technical points better. ;)

@nurupo
Copy link
Member

nurupo commented Feb 20, 2018

tl;dr Tox uses DHT (Distributed Hash Table) for Tox Id --> IP lookups. Every Tox client participates in the DHT. Tox Ids are just random numbers (public keys), nothing ensures their uniqueness but the probability theory. DHT is hardened in a way that only someone you have friended can do this lookup, users that are not in your friend list can't find your IP based on your Tox Id. Once your Toc client gets the IP of a someone that you have friended (and they have accepted your friend request) from the DHT, you can easily connect to them directly, IP to IP, and communicate.

@kurnevsky
Copy link

kurnevsky commented Apr 16, 2018

Actually, at the moment there is a way to get IP address knowing only Tox Id, see #873

Update: fixed in 0.2.2 version.

@iphydf iphydf added this to the v0.2.x milestone Jul 16, 2018
@iphydf iphydf added the P3 Low priority label Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Low priority question Questions
Projects
None yet
Development

No branches or pull requests

6 participants