Decide whether you want a Java Edition server or a Bedrock Edition server
Download the official server software from the Minecraft website
Create a new folder on your PC for the server files
Move the downloaded server file into that folder
Run the server file once to generate the required files
Open the eula.txt file and change eula=false to eula=true
Save the file
Run the server file again to start the server
Wait for the world and server files to finish generating
Keep the server window open while the server is running
Find your PC’s local IP address
Share the local IP address with people on the same network
Open your router settings
Set up port forwarding for the Minecraft server port
Allow the server through your firewall
Restart the server after making network changes
Join the server using localhost on the same PC
Join using the local IP address from another device on the same network
Use your public IP address for players outside your network
Keep the server software updated
Back up the server folder regularly
