Minecraft – Can the query.port setting be the same as the Minecraft server port

minecraft-java-editionminecraft-java-edition-server

There is a property in the Minecraft server.properties file allowing you to specify a query port for the server: query.port.

Can this be the same as the server's listening port?

If I have my Minecraft server listening on 25565, can the query port be the same or does it have to be different?

Best Answer

Technically, I think the query port is UDP while the game port is TCP, so they should be able to share the same port number.