Decide whether you want a Java Edition server or Bedrock Edition server
Check that your computer meets the server requirements
Install the correct version of Java for a Java Edition server
Download the official Minecraft server file from the Minecraft website
Create a new folder for the server files
Move the server file into the folder
Run the server file once to generate the initial files
Open the eula.txt file
Change eula=false to eula=true
Save the file
Run the server file again
Edit server.properties to change server settings
Set the server name, game mode, difficulty, and player limit if needed
Allow Minecraft through your firewall
Open port 25565 on your router for outside players
Find your public IP address
Share your public IP address with players
Use your local IP address for players on the same network
Keep the server computer turned on while the server is running
Back up the server world regularly
Install plugins or mods if desired
Restart the server after making changes
