Giter Site home page Giter Site logo

Comments (9)

Manevolent avatar Manevolent commented on June 3, 2024 1

Fixed in latest commit!

from ts3j.

Manevolent avatar Manevolent commented on June 3, 2024

What server version are you connecting to? This may be related to the Init1 step TS3J is missing

from ts3j.

lexesv avatar lexesv commented on June 3, 2024

1.2.17-beta-7

from ts3j.

lexesv avatar lexesv commented on June 3, 2024
[DEBUG] [NETWORK] WRITE ACK id=2 len=15 to /178.32.109.167:11079
[DEBUG] [PROTOCOL] REASSEMBLE COMMAND id=1 len=65
[DEBUG] [COMMAND] error id=521 msg=too\smany\sclones\salready\sconnected
[DEBUG] State changing: DISCONNECTED
[DEBUG] State changed: DISCONNECTED
LocalIdentity identity = LocalIdentity.generateNew(8);
identity.improveSecurity(8);
String nickname = "Java";
String address = "178.32.109.167";
int port = 11079;
TSClient.setHWID("Windows");
String password = "";
TSClient.setIdentity(identity);
TSClient.setNickname(nickname);

from ts3j.

Manevolent avatar Manevolent commented on June 3, 2024

I added support for Init step 127 and notifypermissionlist, but:

error id=521 msg=too\smany\sclones\salready\sconnected

This indicates your server only allows a certain number of clients, and your bot has exceeded that count. You may be reconnecting too soon on the same identity. I was able to establish two consecutive connections in a brief period of time. I would make sure you are not creating two connections too soon.

EDIT:

Furthermore, one thing I do on my server is create a static identity (saved in configuration), and use that for my bot. Then, I assign that identity to a specific server group, which has the "maximum connected clients" at least 2, or more. That way, the bot may "crash" and safely reconnect.

from ts3j.

lexesv avatar lexesv commented on June 3, 2024

If on the server no users, the bot connected normal. Otherwise, this error occurs.
After connecting the bot, I connect to the server and see it.

from ts3j.

Manevolent avatar Manevolent commented on June 3, 2024

That sounds like an issue with the server. Given I was able to construct connections to the IP/port in the source, tear down (disconnect), and reconnect w/o issue, I would start with server configuration and look into that -- try changing HWID as well, you can randomize that to any string you like.

from ts3j.

lexesv avatar lexesv commented on June 3, 2024

Thanks for reply. I try it.

from ts3j.

kunseru avatar kunseru commented on June 3, 2024

Uhm i'm trying to connect as the wiki says

client.connect(new InetSocketAddress(
        InetAddress.getByName(address),
        port // UDP client port, Teamspeak3 client uses 9987
   ), null, 10000L); 

but its not working

from ts3j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.