Choose the Minecraft edition and server type you want to run
Check that your computer or hosting plan meets the server requirements
Install the correct Java version if needed
Download the official server software for your chosen version
Create a new folder for the server files
Move the server file into that folder
Run the server file once to generate the initial 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
Adjust server.properties to set the server name, mode, difficulty, and player limits
Allow the server port through your firewall
Forward the server port on your router if hosting at home
Find your local IP address for devices on the same network
Share your public IP address with players outside your network
Install plugins or mods if you want extra features
Back up the server files regularly
Keep the server software updated
Monitor performance and increase RAM or hardware if needed
