You can run a Minecraft server from your own computer, but it requires enough RAM, a stable internet connection, and either the official server software or a third-party launcher
Running a Minecraft server on your PC means your computer becomes the host — it runs the game world and handles all the players connected to it. This is different from joining a public server someone else runs. Your PC must stay on and connected to the internet for players to join, and the more players you have, the more processing power and RAM you need. Most home setups work best with 2 to 10 players before performance drops noticeably.
You have two main routes: use the official Minecraft server software (free, but requires Java knowledge and manual setup) or use a third-party launcher like Aternos or Nitrado (easier setup, sometimes free with limits, sometimes paid). The choice depends on how much control you want, how many players you expect, and whether you want to keep the server running 24/7 or only when you play.
Key Takeaways
- Your PC needs at least 2 GB of RAM free for a small server, 4 GB or more if you plan to host more than 5 players at once.
- The official Minecraft server software is free but requires Java to be installed and some command-line setup; third-party launchers handle setup automatically but may charge a monthly fee or limit playtime.
- Your internet connection must be stable and have enough upload speed — most home connections work, but check your upload speed at speedtest.net before inviting players.
- Keeping your server running 24/7 uses electricity and can wear out your PC; many players use third-party hosting instead to avoid this.
- Port forwarding on your router is required if you use the official software, but third-party launchers often handle this automatically.
Check your PC's RAM and processing power first
Open Task Manager on Windows (press Ctrl+Shift+Esc) or Activity Monitor on Mac (Applications > Utilities > Activity Monitor) and look at how much RAM your computer has total. Minecraft servers need RAM separate from what your operating system and other programs use. If you have 8 GB total and want to run a server while also playing on it, you should allocate 2 to 4 GB to the server and leave the rest for Windows or macOS and your game client.
A server with 1 to 2 GB of RAM handles 2 to 4 players. A server with 4 GB handles 6 to 10 players. Beyond that, you need more RAM or you will see lag and crashes. If your PC has less than 8 GB total, you can still run a small server, but close other programs (Chrome, Discord, streaming software) before starting it.
Check your processor too — a modern multi-core CPU (Intel i5 or AMD Ryzen 5 or better) handles a small server without trouble. Older or budget processors may struggle with more than 4 players. If your PC is more than 8 years old, test with a small group first before inviting more people.
Install Java if you are using the official server software
The official Minecraft server runs on Java, so you need Java installed on your PC. Go to oracle.com/java/technologies/downloads/ and read the latest version for your operating system. Install it and follow the prompts. You only need to do this once.
After installation, open Command Prompt (Windows) or Terminal (Mac/Linux) and type java -version to confirm it installed correctly. You should see a version number. If you get an error, Java did not install properly — try downloading again or restart your PC after installation.
read the official server software or choose a third-party launcher
For the official route, go to minecraft.net/read/server and read the server.jar file. Save it to a new folder on your PC — create a folder called "Minecraft Server" on your Desktop or Documents to keep it organized. This file is the actual server software.
For a third-party launcher, Aternos (aternos.org) is free and requires no installation — you create an account, start a server from their website, and players join using the address they give you. The server stops after 30 minutes of no players, so it is best for casual play with friends who log in regularly. Nitrado (nitrado.net) charges a monthly fee (usually $3 to $8 depending on player count) but keeps your server running 24/7 and handles all the technical setup.
If you want full control and do not mind command-line setup, use the official software. If you want the easiest setup and do not mind a small fee or server downtime, use Nitrado or Aternos.
Set up the official server software on your PC
Open the folder where you saved server.jar. Right-click inside the folder and select "New > Text Document" (Windows) or open a text editor (Mac). Type the following line exactly:
java -Xmx2G -Xms2G -jar server.jar nogui
The -Xmx2G part means the server can use up to 2 GB of RAM. If you want to give it 4 GB instead, change both numbers to 4G. Save this file as start.bat (Windows) or start.sh (Mac/Linux). Make sure the file extension is .bat or .sh, not .txt.
Double-click the start.bat or start.sh file to launch the server. The first time you run it, it will create a folder called "world" and a file called eula.txt. Open eula.txt in a text editor, find the line that says eula=false, and change it to eula=true. Save the file. This confirms you accept Minecraft's End User License Agreement.
Run start.bat or start.sh again. The server should now start and show messages in the command window. When you see "Done!" the server is ready for players to join.
Set up port forwarding if players are joining from outside your home network
If players are on the same WiFi or local network as you, they can join by typing your PC's local IP address (find it by typing ipconfig in Command Prompt on Windows, or ifconfig on Mac). Look for an address that starts with 192.168 or 10.0.
If players are joining from outside your home (friends at their own houses), you need to set up port forwarding on your router. Log into your router's admin page — usually 192.168.1.1 or 192.168.0.1 in a web browser. Look for a Port Forwarding section (the exact name varies by router brand). Forward port 25565 (Minecraft's default port) to your PC's local IP address. Save the settings.
Your public IP address (the one players outside your home use) is different from your local IP. Find it by searching "what is my IP" in a browser. Give this IP address to players who want to join from outside your home. Your public IP can change if your internet provider assigns a new one, so check it occasionally.
If port forwarding seems complicated, use a third-party launcher instead — they handle this automatically and give you a straightforward address to share.
Manage server settings and player access
While the server is running, you can type commands into the command window to change settings. Type stop to shut down the server safely. Type say [message] to send a message to all players. Type op [playername] to give a player admin permissions so they can use commands.
To change game rules (like whether PvP is on, whether the world is in Creative or Survival mode, or the difficulty level), open the file called server.properties in a text editor while the server is stopped. Look for lines like gamemode=survival or pvp=true and change them. Save the file and restart the server. A full list of server.properties options is available on the Minecraft wiki.
To back up your world, close the server and copy the "world" folder to another location on your PC or an external drive. Do this regularly so you do not lose progress if something goes wrong.
Troubleshoot common problems
If players cannot connect, check that the server is actually running — look for the "Done!" message in the command window. If it is not there, check that Java is installed correctly and that you saved start.bat or start.sh with the right file extension. Restart the server and watch for error messages.
If the server is running but players outside your home cannot join, port forwarding may not be set up correctly. Log back into your router and confirm that port 25565 is forwarded to your PC's local IP address. Restart your router and try again. If you are still stuck, use a third-party launcher instead — they avoid port forwarding entirely.
If the server is slow or crashes, you may not have allocated enough RAM. Stop the server, edit start.bat or start.sh, and increase the -Xmx and -Xms numbers (for example, change 2G to 4G). Restart the server. If you do not have enough free RAM on your PC, close other programs or reduce the number of players.
If you see "Out of Memory" errors, the server ran out of RAM. Increase the allocation in start.bat or start.sh, or reduce the number of players on the server at once.
Frequently Asked Questions
Can I run a Minecraft server on a laptop?
Yes, but laptops get hot and use more power than desktops. Make sure your laptop has at least 4 GB of free RAM and good ventilation. Close other programs before starting the server. If you plan to run the server for many hours a day, a desktop or third-party hosting is better for your laptop's lifespan.
Do I need to pay for the official Minecraft server software?
No, the official server.jar file is free. You only pay for internet and electricity to run your PC. Third-party launchers like Nitrado charge a monthly fee, but Aternos is free (with the trade-off that the server stops when no one is playing).
What happens if my internet goes out?
Players will be disconnected and cannot rejoin until your internet is back and the server restarts. If you need a server that stays up 24/7 even when your home internet is down, use a paid third-party hosting service instead of running it on your PC.
Can I play on my own server while running it?
Yes, you can launch Minecraft on the same PC and join your server using localhost or 127.0.0.1 as the address. However, this uses more RAM and processing power, so performance may be worse than if only other players were connected. Make sure you allocated enough RAM to the server.
How do I stop the server without losing my world?
Type stop in the command window and wait for the server to shut down completely. Do not close the command window or force-quit the process — this can corrupt your world. Always use the stop command to shut down safely.