Tiiffi / mcrcon

Rcon client for Minecraft
https://github.com/Tiiffi/mcrcon/
zlib License
846 stars 116 forks source link

Connection Failed #65

Closed Slddev closed 3 years ago

Slddev commented 3 years ago

I set up rcon on my server and it seems to be working on the server. Trying to connect to the server results to an error "Connection Failed" with no further info. The server is PaperMC 1.16.5. I tried using the launch.bat and the cmd. Both didn't work. Using mcrcon 7.1

Tiiffi commented 3 years ago

Hi,

Unfortunately current Windows build of mcrcon doesn't report network errors properly (I should fix this) so it can be harder to debug what's going on.

Anyway, are you connecting from local network or internet? Check from server log which ip address is binded to rcon. Also make sure that rcon port is not blocked by firewall or NAT.

Slddev commented 3 years ago

Hi,

Unfortunately current Windows build of mcrcon doesn't report network errors properly (I should fix this) so it can be harder to debug what's going on.

Anyway, are you connecting from local network or internet? Check from server log which ip address is binded to rcon. Also make sure that rcon port is not blocked by firewall or NAT.

I am connecting outside of my local network Server Log doesn't show any signs of rcon connection I turned off my antivirus and firewall.

With all of that in place the same error still happens.

Tiiffi commented 3 years ago

Server Log doesn't show any signs of rcon connection

Does the server show that rcon is actually running? It should look something like this: [07:38:26] [RCON Listener #2/INFO]: RCON running on 0.0.0.0:25575

Make sure that enable-rcon is set to true in "server.properties".

You could also try to use different port for rcon and see if that helps.

Slddev commented 3 years ago

Server Log doesn't show any signs of rcon connection

Does the server show that rcon is actually running? It should look something like this: [07:38:26] [RCON Listener #2/INFO]: RCON running on 0.0.0.0:25575

Make sure that enable-rcon is set to true in "server.properties".

You could also try to use different port for rcon and see if that helps.

image Yes it is enabled.

Tiiffi commented 3 years ago

Most likely not a problem in mcrcon.

Piecuuu commented 2 years ago

As seen in the image, the rcon is using the port 23595. Make sure to open this port in your router if you are hosting by yourself.