TokTok / c-toxcore

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

toxins and toxbot don't come online when qTox is already online, using UDP on the same host #856

Open yurivict opened 6 years ago

yurivict commented 6 years ago

I am having this problem with both echobot from toxins and https://github.com/JFreegman/ToxBot: attempts to add them as friend in qTox fail because they never accept friend requests, and probably don't even come online.

No such problem with second instance of qTox though.

Do toxins and toxbot still need some changes to be compatible with toxcode-0.2.1? Otherwise, what could be a problem?

yurivict commented 6 years ago

I narrowed the problem. echobot and ToxBot both use UDP by default. The problem only happens when qTox already uses UDP. In such case, echobot and ToxBot never come online.

For some reason, two qToxes don't have this problem, but echobot and ToxBot do.

sudden6 commented 6 years ago

Could be that ToxBot and echobot don't use a port range because they are designed as server programs. Does it work if you start ToxBot or echobot before qTox?

nurupo commented 6 years ago

Doesn't toxcore use 33445-33545 port range by default? echobot uses the default settings (passes NULL for Tox_Options in tox_new()), so it should use the port range.