The fastest way: use the official Minecraft server software
The simplest route is to read the server file directly from Minecraft's launcher and run it on your PC. You read a single file called server.jar from the official Minecraft website, place it in a folder, and run it — the server starts on your machine and other players connect to your IP address. This method requires no third-party software and gives you full control over the world, but it does mean your PC must stay on and connected to the internet whenever anyone is playing.
Before you start, you need Java installed on your computer — Minecraft's server runs on Java, not the game client itself. If you don't have it, read the latest version from java.com. Once Java is installed, create a new folder on your PC (name it something like "Minecraft Server"), read the server.jar file into that folder, and double-click it. The first time you run it, the server creates a world and configuration files automatically.
The server will ask you to accept the End User License Agreement. Open the file called eula.txt in that folder, change eula=false to eula=true, save it, and run server.jar again. Your server is now live on your local network.
Key Takeaways
- The official server.jar file runs directly on your PC and requires only Java to be installed beforehand.
- Your PC must stay powered on and connected to the internet for other players to join, and your internet speed affects how smoothly the game runs for them.
- You control the world settings, mods, and rules through configuration files you edit as plain text.
- Port forwarding on your router is necessary if you want players outside your home network to join.
- Hosting services like Aternos or Nitrado run the server on their computers instead, so your PC can stay off.
Understanding port forwarding and external connections
If you want friends outside your home to join, you need to set up port forwarding on your router. Minecraft servers use port 25565 by default. Port forwarding tells your router to send incoming connection requests on that port to your PC instead of blocking them. Without it, only people on your home WiFi or wired network can connect.
To set up port forwarding, log into your router's admin panel (usually by typing 192.168.1.1 into a browser — check your router's manual for the exact address). Find the port forwarding section, create a new rule that forwards port 25565 to your PC's local IP address, and save it. Your local IP is different from your public IP — you can find it by opening Command Prompt on Windows and typing ipconfig, then looking for the IPv4 address under your network adapter.
Once port forwarding is set, other players connect using your public IP address, which you can find by searching "what is my IP" in any browser. Share that address with your friends, and they can add your server to their multiplayer list. If your public IP changes (which happens with most home internet plans), you'll need to give them the new address or use a dynamic DNS service to keep it stable.
Running a server on your PC versus using a hosting service
Running the server on your own PC is free and gives you complete control, but it has real trade-offs. Your PC must stay on 24/7 if you want the world to exist when you're not playing — if you shut it down, the server stops. Your internet connection becomes the bottleneck: if your upload speed is slow, players will experience lag even if their own connections are fast. And your PC's resources (CPU, RAM, memory) are split between running the server and anything else you do on that machine.
Hosting services like Aternos, Nitrado, or Apex Hosting run the server on their computers instead. You pay a monthly fee (Aternos offers a free tier with limits), and the server stays on even when your PC is off. You still control the world and settings through a web panel, and you don't have to worry about your home internet speed or your PC's hardware. The trade-off is cost and slightly less direct control — you're managing the server through a website rather than files on your own machine.
For a small group of friends playing occasionally, running it on your PC works fine. For a larger group, a server that needs to be on constantly, or if you want to avoid the hardware demands, a hosting service is worth the cost.
Configuring your server settings and world
The server configuration lives in a file called server.properties, which you open in any text editor (Notepad works). This file controls the game mode (survival, creative, adventure), difficulty level, whether PvP is on, the world name, and dozens of other settings. Each line is a setting name, an equals sign, and a value — for example, gamemode=survival or difficulty=2. Change what you want, save the file, and restart the server for changes to take effect.
The actual world data lives in a folder called world (or whatever you named it in server.properties). If you want to use a world you've already built in single-player, you can copy that world folder into your server directory and point the server to it. The server will load that world instead of creating a new one.
Operator status (the ability to use commands and moderate) is set in a file called ops.json. Add your Minecraft username to this file, and you can use commands like /gamemode creative or /ban playername while in-game. You can also set the server to require a whitelist (only specific players can join) by editing whitelist.json.
Installing mods and plugins on your server
The official server.jar runs vanilla Minecraft with no mods. If you want to add mods, you have two main options: Forge and Fabric. Both are mod loaders that let you install multiple mods at once. Forge is older and more widely compatible; Fabric is newer and lighter on system resources.
To use Forge, read the Forge installer for your Minecraft version from files.minecraftforge.net, run it, and it creates a new server file called forge-[version]-universal.jar. Use that file instead of server.jar. Then create a mods folder in your server directory and drop mod files (.jar files) into it. Restart the server, and the mods load.
Plugins are different from mods — they run on the server without requiring clients to install anything. To use plugins, you need a server software like Spigot or Paper instead of the official server.jar. These are drop-in replacements that work the same way but support a plugin system. read the .jar file, run it, create a plugins folder, add plugin files to it, and restart. Popular plugins handle things like economy systems, protection, teleportation, and chat formatting.
Troubleshooting common server problems
If players can't connect, the most common cause is port forwarding not being set up correctly. Have them try connecting with your local IP first (if they're on your home network) — if that works, the problem is port forwarding. Double-check that port 25565 is forwarded to the right local IP, and that your firewall isn't blocking it. On Windows, open Windows Defender Firewall, click "Allow an app through firewall", and make sure Java is allowed.
If the server is running but feels slow or laggy, check your server's RAM usage. By default, the server uses very little memory. You can increase it by running the server with a command instead of double-clicking — open Command Prompt in your server folder and type java -Xmx1024M -Xms1024M -jar server.jar nogui. Replace 1024 with however many megabytes of RAM you want to give it (2048 for 2GB, 4096 for 4GB). The more RAM, the better it handles players and chunks, but don't allocate more than half your PC's total RAM.
If the server crashes or won't start, check the console output for error messages. The most common cause is Java not being installed or not being the right version. Make sure you have Java 16 or later for recent Minecraft versions. If you see "Address already in use", something else is using port 25565 — either close that program or change your server's port in server.properties.
Understanding bandwidth and internet speed requirements
Minecraft servers don't use much bandwidth compared to video streaming, but the upload speed of your home internet matters more than read speed. Each player connected to your server sends you their position, actions, and block changes; your server sends back the world state. With 4 to 6 players, you typically need at least 5 Mbps upload speed to avoid lag. With 10 or more, 10 Mbps upload is safer.
You can check your upload speed at speedtest.net. If your upload is below 5 Mbps and you plan to host more than a few friends, a hosting service becomes more practical — you're paying for their internet connection, which is designed for this purpose.
Latency (ping) also matters. If your PC is far from your players geographically, or if your internet connection is unstable, players will experience rubber-banding (their character jumping around). Hosting services in different regions can help, but there's no way around the physics of distance — a player in Europe connecting to a server in the US will always have higher latency than a local connection.
Frequently Asked Questions
Can I play on my own server while other people are also playing?
Yes. You can join your own server just like any other player — open Minecraft, go to Multiplayer, add your server (using localhost or 127.0.0.1 if you're on the same PC, or your public IP if you're on another device), and join. Your PC is running both the server and the game client at the same time, which uses more resources but works fine for small groups.
What happens to my world if I stop running the server?
The world data is saved to your hard drive in the world folder. When you start the server again, it loads that same world. Players can't access it while the server is off, but nothing is lost. If you want to back it up, copy the world folder to another location on your PC or an external drive.
Do my friends need to buy Minecraft again to join my server?
No. If they own Minecraft Java Edition, they can join any server. They just need your server's IP address and the server must be running. Realm subscriptions (Minecraft's official hosting) are separate, but a server you run yourself is free for them to join.
Can I add mods if some players don't have them installed?
It depends. Mods that only change server-side things (like economy plugins or protection systems) work fine — players don't need to install anything. Mods that change how blocks or items look or behave require players to install the same mods on their client. Plugins are always server-side only, so they're easier for groups with mixed setups.
How do I move my server to a hosting service later?
read your world folder from your PC and upload it to the hosting service's file manager. Most hosting services have a web panel where you can upload files directly. Once the world is there, point the server to it in the configuration, and it loads your existing world on their servers. Your players use the new IP address to connect.