Choose the Minecraft edition you want to host: Java Edition or Bedrock Edition
Check that your computer or hosting service meets the server requirements
Download the official server software for your chosen edition
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 file
Change the EULA value to true
Save the EULA file
Run the server file again
Edit the server properties file to set the server name, game mode, difficulty, and player limits
Open the required port on your router, usually 25565 for Java Edition
Set up port forwarding to your server device
Allow the server through your firewall
Find your public IP address
Share your public IP address and port with players
Keep the server running while players are connected
Back up the server world and files regularly
Install plugins or mods only if your server version supports them
Update the server software when needed
Monitor performance and adjust settings if the server lags
