Minecraft – How to set up a Minecraft server on a specific port

minecraft-java-editionminecraft-java-edition-server

I'm trying to set up a game agent and it listens for a server at port 10000. How can I set up a game so that this agent can start interacting in the game?

Best Answer

You can specify the Port in the server.properties file, which should exist next to your server executable:

server-port=<desired-port>

more information