Skip to content

Severoo is opening soon. Server creation is not open yet. See what is coming

Severoo

Getting started

How to host a Minecraft server on your PC

By the Severoo team Published 9 min read

In short

Install Java 25, download Mojang's free server file, run it once, set eula=true and start it again. Friends on your Wi-Fi join with your PC's local address. Friends elsewhere need TCP port 25565 forwarded on your router, or a tunnel service if your connection cannot forward ports.

On this page

To host a Minecraft server on your PC, install Java 25, download Mojang’s free server file, run it once, accept the EULA and start it again. The hard part comes after: letting friends outside your home connect. You forward a port on your router, or you use a tunnel service when forwarding is not possible. This guide covers Java Edition 26.3, the current release as of October 2026, on Windows, macOS and Linux.

Hosting a Minecraft server on your PC: what you gain and give up

You gain You give up
No cost beyond electricity The server is online only while your PC is on and awake
Every file is on your own disk The server shares memory and processor time with your own game
No renewal timer and no host’s rules The network setup is yours to do and to fix
As much RAM as your PC can spare With port forwarding, players learn your home IP address

What you need

  • A 64-bit computer running Windows, macOS or Linux.
  • Java 25. Minecraft 26.1, 26.2 and 26.3 all require it, according to Mojang’s own version data. Older releases need older Java: 1.20.5 to 1.21.11 use Java 21 (full table).
  • Spare memory. Mojang’s example command gives the server 4 GB. See how much RAM a Minecraft server needs.
  • A Minecraft: Java Edition account for each player. Bedrock players need extra software: see Java and Bedrock crossplay.
  • Your router’s admin login, if you plan to forward a port.

Step 1: install Java 25

Any OpenJDK 25 build runs the server. This guide uses Amazon Corretto, which is free and is the build Paper’s install guide walks through. The Corretto 25 downloads page has an installer for each system.

  • Windows: the Windows x64 .msi file. Open it and click through.
  • macOS: a .pkg file. Pick aarch64 for a Mac with Apple silicon and x64 for an Intel Mac.
  • Linux: the .deb file (Debian, Ubuntu) or the .rpm file (Fedora). Paper’s Java install guide lists the repository commands.

Then open a new terminal (Command Prompt on Windows) and check:

java -version

The first line should show version 25.

Step 2: download the official server file

  1. Make an empty folder for the server, for example minecraft-server in your home folder. The server writes all its files into the folder it runs from.
  2. Download the server from Mojang’s server download page. It is free. Do not get it from any other site.
  3. Move the file into your folder. Mojang’s example command uses a file name with the version number in it, but the download is saved as server.jar. If yours has another name, rename it to server.jar so the commands below match.

Want plugins? Download Paper instead and rename its file to server.jar: the steps are the same. See Paper vs Spigot vs Purpur.

Step 3: write a start script

Windows. Open Notepad, paste the two lines below and save the file in the server folder as start.bat. In the save window, set the file type to All files so it does not become start.bat.txt.

java -Xmx4G -Xms4G -jar server.jar nogui
pause

macOS and Linux. Save this in the server folder as start.sh, as plain text. In TextEdit on a Mac, choose Format, then Make Plain Text, before you save.

#!/bin/sh
cd "$(dirname "$0")"
java -Xmx4G -Xms4G -jar server.jar nogui

Then make it executable. Change the path if your folder is somewhere else.

cd ~/minecraft-server
chmod +x start.sh

-Xmx and -Xms set the server’s memory. 4G is the value in Mojang’s example. On a PC with 8 GB in total, use 2G so the system and your game keep some. Leave out nogui if you want the server’s own window. The start script generator writes this file for your memory size and server software.

Step 4: run it once and accept the EULA

  1. Start the server. On Windows, double-click start.bat. On macOS and Linux, run ./start.sh in the terminal.
  2. The first run creates eula.txt and server.properties, then stops.
  3. Open eula.txt in a text editor, read the Minecraft EULA it links to, change eula=false to eula=true and save.
  4. Start the server again. It generates a world, then the console reports that it is done.
  5. If Windows asks whether Java may use the network, allow it. Otherwise no other device can connect.

Now add yourself. Type these in the server console, with no slash and with your own player name:

whitelist add YourName
op YourName

To shut down, type stop in the console. It saves the world first. Do not just close the window.

How friends join a server hosted on your PC

On the same PC or the same network

On the PC that runs the server, add a server in Minecraft’s Multiplayer screen with the address localhost. Other devices on your home network use the PC’s local IP address. No port forwarding is needed.

  • Windows: run ipconfig and read the IPv4 address under your Wi-Fi or Ethernet adapter.
  • macOS: open the network settings and read the IP address of your connection.
  • Linux: run ip addr.

The address looks like 192.168.1.50. Friends type it as the server address, with no port: 25565 is the default. See how to join a Minecraft server.

Over the internet with port forwarding

Port forwarding tells your router to pass incoming Minecraft connections to your PC. Menu names differ on every router, so check your model’s manual.

  1. In your router’s admin page, reserve the PC’s local IP address so it does not change. Routers call this a DHCP reservation or a static lease.
  2. Find the port forwarding page and add a rule: external port 25565, internal port 25565, protocol TCP, destination your PC’s local IP address. Some routers only offer “TCP/UDP” or “Both”, which also works.
  3. Find your public IP address by searching for “what is my IP”. Friends type that as the server address. Many home connections get a new one from time to time, so check it again when friends suddenly cannot connect.
  4. Test from outside your home, for example with the server status checker or a phone on mobile data. A test from inside your own network can fail on some routers even when the rule is correct.

Why port forwarding fails behind carrier-grade NAT

Some internet providers put many customers behind one shared public IP address. This is carrier-grade NAT, or CGNAT. Your router then has no public address of its own, so a forwarding rule on it does nothing: the provider’s equipment sits in front, and you cannot configure that.

To check, find the WAN or internet IP address on your router’s status page. You are behind CGNAT, or behind a second router, if that address:

  • starts with 100.64 through 100.127 (the block 100.64.0.0/10, which RFC 6598 reserves for this), or
  • differs from the address a “what is my IP” site shows you.

Your options: ask your provider for a public IPv4 address (some charge for it), use a tunnel, or use a host.

Without port forwarding: a tunnel service

A tunnel connects outward from your PC, so the router needs no rule. There are two kinds. The services named are examples, not recommendations.

  • A relay. You run a small program next to your server, and players connect through the service’s network. playit.gg works this way. Its site says no port forwarding is required and that you do not share your home IP. As of October 2026 it lists Minecraft Java and Bedrock on its free tier, with a paid tier at $3 a month. The trade-off: all traffic passes through the company’s servers, which can add ping.
  • A private network. You and your friends install the same VPN app. Tailscale is one example: its sharing docs describe sharing one machine with another person’s account without putting it on the public internet. As of October 2026 its free Personal plan allows up to 6 users. The trade-off: every player needs the app and an account.

Security basics

  • Keep online-mode=true, the default. The server then checks every player against Minecraft’s account database.
  • Keep the whitelist on and add only people you know.
  • Forward one port only. Never put the PC in your router’s DMZ, and leave RCON off, as it is by default.
  • Run the server from a normal user account, not as administrator or root.
  • Download plugins and mods from their official pages. They run with the same access to your PC as you have.
  • Back up the world. Stop the server and copy the world folder somewhere else.

If it does not work

  • The server stops right after starting. eula.txt still says eula=false, or Java is older than 25. More causes: Minecraft server won’t start.
  • A friend cannot connect. If the game says they are not whitelisted, run whitelist add with their exact name. If it times out, check the firewall, the forwarding rule, your public IP and CGNAT, in that order. More causes: can’t connect to a Minecraft server.

When a free host is the easier choice

Hosting on your PC makes sense when the PC can stay on, your connection can forward a port and everyone who has the address is a friend. If one of those is missing, a hosted server is less work: it has its own address, so there is no router to configure and nobody learns your home IP.

On Severoo, a free server gets up to 6 GB of RAM and up to 20 GB of NVMe SSD storage with no credit card. It stays online 24/7 as long as you renew it and does not sleep when it is empty. The catch is the renewal. Renewing is one click, paid for with account credits that are free to collect. It is due on a schedule that depends on your plan (every few hours on some plans). You collect credits by claiming them daily, using the site and running your server, and completing small tasks. Credits cannot be bought, and collecting them this way is enough to keep one server online all the time, as long as you renew it on schedule. A server that is not renewed is suspended first, and if it is not re-enabled within 7 days it is removed permanently. Your own PC has no such timer. See what free Minecraft server hosting includes. A world you built at home can move with you: upload the world to the server.

Frequently asked questions

Can I host a Minecraft server on my PC without port forwarding?

Yes, in three cases. Friends on the same home network never need it. Friends elsewhere can reach you through a tunnel service, which relays the connection or puts everyone on one private network. Or you skip the PC and use a host: see how to make a free Minecraft server.

Is it free to host a Minecraft server on your own PC?

The server software is a free download from Mojang and Java is free. You pay in electricity, and the PC has to stay on and awake the whole time anyone wants to play. Every player still needs their own Minecraft account.

Is it safe to give friends my IP address for a Minecraft server?

Only friends you trust. With port forwarding, the address they type is your home's public IP. It shows your internet provider and rough area, and someone who has it can flood your connection. Never post it in public. Keep online-mode=true and the whitelist on.

How much RAM does my PC need to host a Minecraft server?

Mojang's example start command gives the server 4 GB. Your PC needs that on top of what the operating system and your own game use. The RAM calculator gives a figure for your player count and mods.

Why can my friends not join even though I forwarded the port?

The usual causes: they are not on the whitelist (it is on by default since 26.3), a firewall on the PC blocks Java, the rule points at the wrong local address, your public IP changed, or your provider uses carrier-grade NAT, where forwarding cannot work at all.

Do I have to leave my PC on for the server to stay online?

Yes. The server stops when the PC shuts down, sleeps or loses its connection. If friends play while you are away, a hosted server suits you better.

Start your free server

Create an account, pick your version, and share the address with your friends.