irungentoo / toxcore

The future of online communications.
https://tox.chat/
GNU General Public License v3.0
8.74k stars 1.27k forks source link

toxcore cannot bootstrap when connected to DNS64/NAT64 #1620

Closed dvor closed 7 years ago

dvor commented 8 years ago

I've tried to submit Antidote to the AppStore but it was rejected by Apple because it doesn't work on NAT64 network.

How to reproduce:

Same issue was observed when using latest uTox and qTox.

If you will switch to normal network, let tox to connect, switch back to NAT64, try to connect again - sometimes it may work, but quite often it doesn't.

It would be nice if anyone can tell me how to debug / where to look to fix this issue. I'm quite stuck, also release to the AppStore is blocked by this.

GrayHatter commented 8 years ago

@dvor have to tried with ONLY ipv6 bootstraps?

My first instinct tells me that Tox will find it's place in the DHT, the the only close-peer connections you have are IPv4, that'll break stuff.

Also, you could also try with a private tox network, that's ONLY on IPv6, but that's very hard to maintain. Toxcore will very aggressively bridge any network it can.

Finally, I suggest you consider @toktok/c-toxcore for future issues and pulls.

GrayHatter commented 8 years ago

according to @dvor the issue seems to be fixed by enabling TCP only mode.

This makes me think that the problem is Apple's implementation of NAT64 which should support unicast UDP (according to RFC6146) but doesn't seem to.

GrayHatter commented 7 years ago

@dvor reopen this if you haven't worked it out. But IIRC, you did get it working.

dvor commented 7 years ago

No, issues wasn't fixed yet. I'll clone it to c-toxcore.