Multivit4min / TS3-NodeJS-Library

TeamSpeak 3 Server Query Library supports SSH and RAW Query
https://multivit4min.github.io/TS3-NodeJS-Library/
MIT License
150 stars 20 forks source link

Socket Timeout reached #132

Closed Zel9278 closed 4 years ago

Zel9278 commented 4 years ago

Describe the bug Cannot connect with non-host clients. console says:

Error: Socket Timeout reached
    at ProtocolRAW.handleTimeout (C:\Users\xxx\nodejs-projects\ts3bot\node_modules\ts3-nodejs-library\lib\transport\protocols\raw.js:28:28)
    at Socket.emit (events.js:315:20)
    at Socket._onTimeout (net.js:480:8)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7)

To Reproduce

const { TeamSpeak } = require("ts3-nodejs-library");
const teamspeak = new TeamSpeak({
  host: "global ip or url",
  queryport: 10011,
  serverport: 10013,
  nickname: "NodeJS Query Framework"
});

teamspeak.on("ready", () => {
  console.log("bot is ready");
});

teamspeak.on("error", (e) => {
  console.error(e);
});

Expected behavior bot is ready!" appears in the console and the server is properly populated with users.

Versions used

Multivit4min commented 4 years ago

This happens when on the host and queryport pair no teamspeak exists or maybe a firewall exists which blocks the connection

Zel9278 commented 4 years ago

The port is free, and the firewall is meeting, because if you're an official client, you can connect.

Multivit4min commented 4 years ago

The official client uses a different protocoll aswell as a different port to connect, the query uses the queryport to connect to the server and the serverport to select the virtual teamspeak server

Zel9278 commented 4 years ago

image Hmmm, the port is properly opened, and if it's local, you can do it. Proper server and file manager. I also checked the query port.

Zel9278 commented 4 years ago

Sorry, I just didn't have an open port on 10011.

cesardmoro commented 3 years ago

Sry to reopen, im triying to make a bot that connects to Any server if im owner or not, is this posible ? to connect like a regular client to transfer and hear sound ? I can do this using a music bot on c# but cannot found it on node js.

This is the error im getting:

image

I suspect the server don't have queryport open, so i cant connect using regular client port ?

Also neither of the ports works with telnet, but they work with regular client and c# client

TigerGamer134 commented 2 years ago

Sorry, I just didn't have an open port on 10011.

Hey, I know this is a little late, but how did you verify the port wasn't open? As I am having the same issue currently