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

Connection closed by the server #393

Open
tue-Jonas opened this issue Jul 6, 2021 · 1 comment
Open

Connection closed by the server #393

tue-Jonas opened this issue Jul 6, 2021 · 1 comment

Comments

@tue-Jonas
Copy link

I have no idea how to fix this error:
Screenshot_1

[[TeamSpeak-3-Java-API] StreamReader] ERROR com.github.theholywaffle.teamspeak3.StreamReader - Connection closed by the server.
[pool-1-thread-1] ERROR com.github.theholywaffle.teamspeak3.api.reconnect.DisconnectingConnectionHandler - [Connection] Disconnected from TS3 server
Exception in thread "main" com.github.theholywaffle.teamspeak3.api.exception.TS3QueryShutDownException: The query was shut down or disconnected.
at com.github.theholywaffle.teamspeak3.api.CommandFuture.checkForFailure(CommandFuture.java:416)
at com.github.theholywaffle.teamspeak3.api.CommandFuture.getUninterruptibly(CommandFuture.java:357)
at com.github.theholywaffle.teamspeak3.TS3Api.selectVirtualServerByPort(TS3Api.java:3908)
at teamspeak.Load.connect(Load.java:26)
at Main.main(Main.java:24)

@rogermb
Copy link
Collaborator

rogermb commented Jul 6, 2021

Hi @akajonas

It looks like you are able to connect to the TS3 server, but you're getting disconnected immediately after.
Almost always, this is the case because people forget to whitelist / allow-list the IP of their query client on the TS3 server while using the UNLIMITED flood rate. To help diagnose this issue, you could try running the query with the default flood rate. If you don't get disconnected, not properly being whitelisted is what caused your issue. Please note that you may have to wait for the previous flood ban to expire before being able to connect again. To speed up this process, you could also restart your TS3 server.

Also, note that the whitelist / allow-list file is only read once when the TS3 server is started, so you have to restart the server for any changes to take effect.

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

No branches or pull requests

2 participants