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

TCP or UDP. Which is more secure? #1085

Closed
fw190d13 opened this issue Nov 2, 2022 · 8 comments
Closed

TCP or UDP. Which is more secure? #1085

fw190d13 opened this issue Nov 2, 2022 · 8 comments
Labels
question Further information is requested

Comments

@fw190d13
Copy link

fw190d13 commented Nov 2, 2022

Hi!

Which of those two is more secure and better from anonymity perspective?

I have tested TCP using Netguard on my Andorid device and I can see that it connects to various servers while the UDP gives just random IP numbers in the log.

Which should I use? Which is better?

@SiNaPsEr0x
Copy link

udp

@robinlinden
Copy link
Collaborator

For anonymity, you'll want to use Tox together with Tor. aTox works fine together with e.g. Orbot

UDP tries to create direct connections with your contacts, TCP uses other Tox nodes as TCP relays between you and your contact.

@robinlinden robinlinden added the question Further information is requested label Nov 4, 2022
@SiNaPsEr0x
Copy link

yes... but is very difficult to open everywhere in a ordinary day... torbrowser integrated tor... or simply add socks5 with login e pass possibilty to configure own proxy with tor

@robinlinden
Copy link
Collaborator

Yeah, it's not super simple and we should make it nicer. :) For now, I have some old instructions I wrote in a different issue:
#781 (comment)

@SiNaPsEr0x
Copy link

yes.. on iOS orbot make a VPN ... As iOS works a little differently

@giiutfff
Copy link

giiutfff commented Nov 5, 2022

For anonymity, you'll want to use Tox together with Tor. aTox works fine together with e.g. Orbot

That will be a huge overhead for just being online (idle, not chatting). Since Tox already use a lot power. Might not be ideal for daily usage.

UDP tries to create direct connections with your contacts, TCP uses other Tox nodes as TCP relays between you and your contact.

Maybe let users choose if they trust given relay? I guess @fw190d13 just finds those servers showing in the network log looks suspicious. Although it's not like any relay could decrypt messages send through them. And any device between client and the relay can detect the data flow. There is no anonymity without a layered network(like Tor) anyway. (correct me if I'm wrong)

Kind regards

@fw190d13
Copy link
Author

fw190d13 commented Nov 6, 2022

Hi all!

Thank you for clarifying the situation. I did a bit of testing and on UDP the battery is drained with the speed of water flowing through Niagara Falls. On TCP it is much better but still to fast for my use case so aTOX will be used as a spare tool for the cases when Delta Chat fails to do its job.

@robinlinden
Copy link
Collaborator

Yeah, since there are no servers involved in Tox and you have to do peer-to-peer stuff like announcing yourself to be online, the pap can't go into the background and the system can't go into deep sleep, so battery drain will be higher.

Thanks for letting me know! :) Closing this as resolved.

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

No branches or pull requests

4 participants