Download the Minecraft server .jar file from the official Minecraft website
Create a new folder for the server files
Move the server .jar file into the folder
Open a terminal or command prompt in that folder
Run the server once with Java, for example: `java -Xmx1024M -Xms1024M -jar server.jar nogui`
Open the generated `eula.txt` file
Change `eula=false` to `eula=true`
Save the file
Run the server again with the same Java command
Edit `server.properties` to configure the server settings
Open port `25565` on your router and firewall
Share your public IP address with players
Keep the server running while people are connected
