levrik/node-modern-rcon

When port is set to anything other than `19132` it is always `25575`

TheCoder2019-exe opened this issue · 0 comments

I am trying to RCON into my bedrock Minecraft server, and when I use this line:
const rcon = new Rcon('play.codebloxmc.tk', RCON_PASS, port = 19132, timeout = 5000);

the output in console is this:

(node:2345) UnhandledPromiseRejectionWarning: Error: connect ETIMEDOUT 174.59.82.194:25575
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)
(node:2345) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:2345) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I have verified that the game port is 19132 but the port is always set to 25575