What you need to do to run a Minecraft server from your computer
To run a Minecraft server, you read server software onto a computer, configure a few settings in a text file, and start the program. That computer then becomes the server — it stays on and listens for players to connect. Other players on your home network (or the internet, if you open your router) connect to your computer's address and join the world you're running.
The simplest path is to use Minecraft Server, the official software from Mojang Studios. You read a file called server.jar, create a folder for it, run it once to generate the settings file, edit that file to name your world and set rules, then run it again to start accepting players. The whole process takes about 15 minutes if you already have Java installed.
If you want players to join from outside your home network, you'll also need to know your computer's local IP address (the address it uses on your home network) and decide whether to forward ports on your router — a setting that tells your router to send incoming connection requests to your server computer. This is optional; many people run servers only for players physically present or on the same network.
Key Takeaways
- read server.jar from minecraft.net/read/server, place it in its own folder, and run it twice — once to create the settings file, once to start the server.
- Edit server.properties to name your world, set the game mode, and control who can join and what they can build.
- Find your computer's local IP address in Windows Settings or Mac System Preferences, then give that address to players on your network so they can connect.
- Port forwarding on your router is only necessary if you want players outside your home network to join; it carries a small security trade-off in exchange for remote access.
- Keep your server computer plugged in and the server program running; the world only exists while the server is active.
Downloading and installing the server software
Go to minecraft.net/read/server and read the server.jar file. This is the official Minecraft server software. Create a new folder on your computer — call it something like "Minecraft Server" — and move the server.jar file into that folder.
Before you can run the server, you need Java installed on your computer. Most computers have it, but if you don't, read it from java.com. On Windows, read the Windows Offline Installer. On Mac, read the macOS installer. Install it and restart your computer.
Open a command prompt (Windows) or Terminal (Mac), navigate to your server folder, and type java -jar server.jar nogui, then press Enter. The program will run, create several files including server.properties, then stop with an error message about the EULA (End User License Agreement). This is normal — it means the software ran successfully.
Accepting the EULA and configuring your server
The server won't start until you agree to the EULA. Open the file called eula.txt in your server folder using any text editor (Notepad on Windows, TextEdit on Mac). Find the line that says eula=false and change it to eula=true. Save the file and close it.
Now open server.properties in the same text editor. This file controls how your server behaves. The most important settings are:
- motd — the name of your server that appears in the server list (for example, motd=My First World)
- gamemode — set to survival for normal play, creative for unlimited building, or adventure for a custom experience
- difficulty — set to peaceful, straightforward, normal, or hard
- pvp — set to true to allow players to fight each other, false to prevent it
- online-mode — set to true to require players to have a real Minecraft account, false to allow anyone
Make your changes, save the file, and close it. You're ready to start the server.
Starting your server and connecting locally
Open a command prompt or Terminal in your server folder and type java -jar server.jar nogui again. This time the server will start and stay running. You should see messages like "Done! For help, type 'help'" — that means it's working.
To connect from another computer on your home network, you need your server computer's local IP address. On Windows, open Settings, go to Network & Internet, then Status, and look for "IPv4 address" — it will look like 192.168.1.100 or similar. On Mac, open System Preferences, go to Network, and look for "IP Address".
On the client computer (the one you're playing from), open Minecraft, click Multiplayer, then Add Server. In the "Server Address" field, type your server computer's IP address. Give the server a name and click Done. You should now see your server in the list and be able to click it to join.
Opening your server to players outside your home network
If you want friends outside your home to join, you need to forward a port on your router. A port is a numbered channel that your router uses to direct traffic. Minecraft uses port 25565 by default. Port forwarding tells your router: "When someone on the internet tries to reach port 25565, send them to this computer."
Log into your router's admin panel — usually by typing your router's IP address (often 192.168.1.1) into a web browser. Look for a section called Port Forwarding, Virtual Server, or Port Mapping. Create a new rule that forwards port 25565 (or whatever port you set in server.properties) to your server computer's local IP address. Save the rule.
To find your public IP address — the address people outside your network use to reach you — go to whatismyipaddress.com or search "what is my IP". Give this address to your friends, and they can add your server the same way you did, using your public IP instead of your local one.
Keep in mind that port forwarding creates a small security opening: your server computer is now directly reachable from the internet. This is usually safe if you keep Minecraft updated and don't give the address to people you don't trust, but it is a trade-off. If you're uncomfortable with it, keep your server local-only.
Keeping your server running and troubleshooting common issues
Your server only exists while the program is running. If you close the command prompt or shut down the computer, the server stops and players get disconnected. If you want to run a server 24/7, you need to leave the computer on 24/7 — or move the server to a hosting service, which is outside the scope of a home network setup.
If players can't connect, check that the server is still running (you should see new messages in the command prompt when players try to join). If the command prompt closed unexpectedly, look for a file called logs/latest.log in your server folder — it will tell you what went wrong. Common causes are Java not being installed, the EULA not being accepted, or a typo in server.properties.
If remote players can't connect but local players can, your port forwarding probably isn't working. Log back into your router and double-check that the rule points to the correct local IP address and port number. If your local IP address changed (routers sometimes reassign them), you need to update the port forwarding rule to match.
Choosing between a home server and a hosting service
Running a server on your home computer works well for small groups — a few friends or family members. It costs nothing beyond electricity and doesn't require technical knowledge beyond following these steps. The trade-offs are that your computer has to stay on, your internet connection carries all the player traffic, and you're responsible for backups if you want to save your world.
If you want a server that runs 24/7 without keeping your computer on, or if you expect many players, a hosting service like Aternos, Nitrado, or Apex Hosting runs the server on their computers instead. These services charge a monthly fee (or are free with limitations) but handle the technical side and may provide uptime. They're worth considering if a home server becomes too much work.
Frequently Asked Questions
Do I need to port forward if I only want local players?
No. Port forwarding is only for players outside your home network. If everyone joining is on the same WiFi or wired connection as your server computer, they can connect using your local IP address without touching your router settings.
What happens to my world if I restart the server?
Your world is saved to disk automatically. When you restart the server, the world loads back exactly as it was. Players will be disconnected during the restart but can rejoin afterward.
Can I run a server on a laptop?
Yes, but the laptop has to stay on and plugged in. Laptops can overheat if they run continuously, so make sure yours has good ventilation. A desktop computer is more reliable for long-term server use.
How many players can my home server handle?
That depends on your internet upload speed and your computer's power. Most home connections and computers handle 4 to 10 players smoothly. Beyond that, you'll likely see lag. A hosting service is better for larger groups.
Is running a home server safe?
It's safe if you keep Java and Minecraft updated and don't give your server address to strangers. Port forwarding opens a small security door, but it's a controlled one — Minecraft's server software is designed to handle internet traffic. If you're uncomfortable with any part of it, keep your server local-only.