How to change the query port on a Minecraft server
Set query.port=25565 in server.properties with enable-query=true and restart the server. Query requests are answered on that UDP port.
query.port
Sets the UDP port the query protocol listens on.
query.port=<port> Examples
query.port=25565 Default.
Arguments
portRequired- The value to write after the equals sign.
What it does
Only used when enable-query is true. It can share the number of server-port because query uses UDP.
Good to know
- Changes take effect after a server restart.
Run it on your server
On a SLASHPLAY server, type it in the Console tab without the leading slash; in game, operators type it in chat with the slash. New to this? Start a Minecraft server first.
Your own
Minecraft server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.