Download the Minecraft: Java Edition server for PC/Mac
Want to set up a multiplayer server?
Please note: This server setup is only compatible with Minecraft: Java Edition.
If you want to run a Minecraft multiplayer server by yourself things get kind of involved (see this wiki article for a tutorial). First make sure you can use java from the command line. On Linux and macOS this should already be set up but on Windows you might have to tinker with the PATH environment variable.
Download minecraft_server.1.12.2.jar and run it with the following command:
java -Xmx1024M -Xms1024M -jar minecraft_server.1.12.2.jar nogui
Should you want to start the server with it's graphical user interface you can leave out the "nogui" part.