You can run a Minecraft server from your own computer or use a free hosting service, but each method has real trade-offs
A Minecraft server lets you and your friends play together on the same world instead of just in split-screen or through Realms. You have two main routes: run the server software on your own computer (which costs nothing but ties up that machine), or use a free hosting service (which runs on someone else's hardware but may shut down or limit your world if you don't pay).
The computer method works well if you have a spare machine or don't mind leaving your main PC running. Free hosting services like Aternos and Minehut let you play without hardware costs, but they restart your world if nobody logs in for a while, and they cap how many players can join at once. Neither route is "better" — it depends on whether you have the hardware and whether you want the server running all the time.
Key Takeaways
- Running a server from your own computer requires the free server software from minecraft.net, a computer left running, and opening a port on your router so friends can connect.
- Free hosting services like Aternos and Minehut require no setup but restart your world if inactive and limit player count to around 10–20 people depending on the service.
- Your friends need the Java Edition of Minecraft (not Bedrock) to join a server you create, and they need your computer's IP address or the hosting service's connection details.
- A server running on your computer uses electricity and bandwidth, while a hosted server is free but may delete your world if you stop playing for months.
Running a server from your own computer
Download the server software from minecraft.net/download/server. You will need Java installed on your computer — if you do not have it, download the latest version from java.com. Save the server file (named something like server.jar) in a new folder on your computer.
Open a command prompt or terminal window, navigate to that folder, and run the command java -Xmx1024M -Xms1024M -jar server.jar nogui. The server will create a world and start running. Your friends can join by typing your computer's IP address into the Minecraft multiplayer menu — find your IP by searching "what is my IP" in a web browser, or use your local network IP (usually 192.168.x.x) if your friends are on the same WiFi.
The catch: your computer must stay on and connected to the internet for the server to run. If you shut it down, nobody can play. You also need to open a port on your router so people outside your home network can reach the server — this involves logging into your router's settings and forwarding a port (usually 25565) to your computer's local IP. If you are not comfortable with router settings, stick with a hosting service instead.
Using a free hosting service
Aternos and Minehut are the two largest free Minecraft server hosts. Both let you create a world and invite friends without paying anything or setting up port forwarding.
On Aternos, create an account, click "Create Server," choose a name and version, and wait a few minutes for it to start. You get a connection address (like abc123.aternos.me) that you share with friends. They type this into the multiplayer menu and join. The server stops automatically after 30 minutes of no players, and you have to restart it from the Aternos website. If nobody logs in for a week, Aternos may delete the world to save space.
Minehut works similarly but keeps servers running longer before shutdown and has a slightly higher player limit. Both services cap you at around 10–20 concurrent players depending on the plan. If you want more players or a server that never shuts down, you would need to pay for a premium plan or run the server yourself.
What your friends need to join
Everyone joining must own Minecraft Java Edition — not Bedrock Edition (the version on Windows 10/11 Store, consoles, or mobile). Java Edition is the original PC version and is the only one that works with custom servers. If a friend has Bedrock, they cannot join your server.
Once they own Java Edition, they open the game, click "Multiplayer," then "Add Server." They paste your IP address (if you are running a server from home) or the hosting service's connection address (if you are using Aternos or Minehut) into the "Server Address" field. The server appears in their list, and they click it to join.
Choosing between your computer and a hosting service
Run a server from your computer if you have a spare machine, do not mind leaving it on, and want the server running whenever you want to play. You get full control and no restrictions on world size or player count (though your computer's power limits how many players it can handle smoothly). The trade-off is electricity cost, the risk of port-forwarding mistakes, and the need to keep the machine running.
Use a free hosting service if you want to avoid setup, do not have a spare computer, or do not want to worry about port forwarding. You lose the server if you stop playing for weeks, and you are capped at a smaller player count, but the service handles all the technical work. Aternos is better if you play sporadically; Minehut is better if you want the server to stay up longer between restarts.
Common problems and how to fix them
If friends cannot connect to your computer-based server, the most common cause is port forwarding. Log back into your router, confirm the port is forwarded to your computer's local IP address, and check that you gave friends your public IP (not your local 192.168.x.x address). If you are unsure, use a hosting service instead — it handles this automatically.
If your Aternos or Minehut server keeps shutting down, that is normal — both services stop inactive servers to save resources. Restart it from the website whenever you want to play. If your world disappeared, the service likely deleted it after weeks of inactivity. Hosting services are not meant for long-term storage if you are not paying; treat them as temporary playgrounds.
If the server starts but friends get a "connection refused" error, the server software may not have started correctly. Check the command prompt or terminal window for error messages. The most common fix is installing Java if you do not have it, or using the correct Java command from the minecraft.net server page.
Upgrading to a paid server later
If your group grows beyond what free options support, paid hosting services like Nitrado, GameServers, and Apex Hosting let you rent a server for $3–$10 per month. These services keep the server running 24/7, support more players, and let you customize the world without worrying about deletion. You can start free and upgrade whenever you need to.
Some hosting services offer a free trial period — check their websites to see if you can test a paid plan before committing. If you are happy with a small group and free hosting, there is no reason to upgrade.
Frequently Asked Questions
Can I run a server on a Mac or Linux computer?
Yes. Download the server.jar file from minecraft.net/download/server and run the same Java command in Terminal. The process is identical to Windows — you just use Terminal instead of Command Prompt. Make sure Java is installed first.
Do I need to pay for Minecraft Java Edition to run a server?
You need to own Java Edition to play on the server, but the server software itself is free. If you already own the game, you have everything you need. Your friends also need to own Java Edition to join.
What happens to my world if I use Aternos and stop playing?
Aternos deletes inactive servers after about a week of no logins to save storage space. If you want to keep your world, download a backup from the Aternos website before it gets deleted, or log in at least once a week to keep the server active.
Can I add mods or plugins to a free server?
If you run the server from your computer, you can add plugins using software like Bukkit or Spigot. Aternos and Minehut also support some plugins and mods, but the selection is limited compared to paid hosting. Check their websites for which mods they support.
How many players can join a free server?
A server on your computer can theoretically support as many players as your internet and computer power allow, but most home connections and computers start to lag around 10–20 players. Aternos and Minehut cap free servers at around 10–20 concurrent players depending on the service and plan.