Choose the Minecraft edition you want to host: Java Edition or Bedrock Edition
Check that your computer or server meets the required hardware and internet speed
Install the correct Java version for Java Edition servers
Download the official Minecraft server software from the Minecraft website
Create a new folder for the server files
Place the server file into the folder
Run the server file once to generate the required files
Open the generated eula.txt file
Change eula=false to eula=true
Save the file
Run the server file again to start the server
Configure server.properties to set the server name, mode, difficulty, max players, and other settings
Allow the server port through your firewall
Forward the server port on your router if hosting for players outside your local network
Find your public IP address if players will join from outside your network
Share your IP address and port with players
Keep the server running while players are connected
Install plugins or mods only if your server version supports them
Back up the server folder regularly
Update the server software when new versions are released
