Minecraft – Get RCON working on a Minecraft server

minecraft-java-edition

Has anybody been able to get either the rcon or gamespy4 services working on a minecraft server?

Following information on the wiki we've tried:

rcon.password=ourverysecretpassword
server-port=25565
query.port=25567
enable-rcon=true
rcon.port=25575

But this doesn't seem to enable either service…
The ports are simply closed:

Interesting ports on localhost (127.0.0.1):
PORT      STATE  SERVICE
25564/tcp closed unknown
25565/tcp open   unknown
25566/tcp closed unknown
25567/tcp closed unknown
25568/tcp closed unknown

Any suggestions?

Best Answer

Tzarium is not correct reguarding the nmap and networking issues. Nmap is 100% accurate; though you might need to use it properly and read its output carefully.

25567/tcp closed means that TCP port 25567 is closed, which is not the same as UDP port 25567. And MC server uses UDP for the "query" feature.

Consider these nmap command lines for reference:

## Probe UDP port 25565 -- default port for the "query" feature
% nmap -sU -pU:25565 minecraft-server
...
PORT      STATE         SERVICE
25565/udp open|filtered unknown


## Probe TCP ports 25565 and 25575 -- the usual Minecraft client port
## and default RCON port
% nmap -p25565,25575 minecraft-server
...
PORT      STATE SERVICE
25565/tcp open  unknown
25575/tcp open  unknown

7 years later edit

Yea, indeed. "Using nmap properly" includes understanding that different network paths will behave differently in general, and especially likely so when you're debugging an issue. To see with nmap what a client sees, you need to run nmap on the client; or at the very least from its immediate network neighbor (same local subnet), so that the network path is mostly the same except for one host. Notice I wrote minecraft-server as nmap target, not localhost! — implicitly assuming this understanding. A very late thanks to @user56 commenting on this.