Two Ways to Host a Minecraft Server
Before you start, decide which approach suits you:
Option 1: Self-Hosting on Your PC
Java Edition Server
- Install Java 21 (or the version matching your Minecraft version) from Adoptium.
- Download the server JAR from minecraft.net.
- Create a folder for your server files (e.g.,
C:\MinecraftServer). - Run the JAR with:
java -Xmx4G -Xms2G -jar server.jar nogui - Accept the EULA: edit
eula.txtand seteula=true. - Run again. The server will generate world files and start.
- Configure
server.propertiesfor game mode, difficulty, max players, etc.
Port Forwarding
For friends outside your network to connect, you need to forward port 25565 (Java) or 19132 (Bedrock) on your router:
- Log into your router admin panel (usually 192.168.1.1 or 192.168.0.1)
- Find the Port Forwarding section
- Create a rule: external port 25565, internal port 25565, TCP, pointing to your PC’s local IP
- Share your public IP address with friends (find it at whatismyip.com)
Option 2: Host It on a VPS
A VPS is a server in a data centre that you rent by the month. You install the Minecraft server on it the same way as on your own PC, and it stays online when your PC is off. You get:
- A server that is always on: no need to keep your PC running
- DDoS protection: critical for public servers
- Your own IP address, so there is no port forwarding and your home IP stays private
- Full root access for any mods, plugins or modpacks
- Backups you can restore from
With Glitch Servers, a game server VPS starts at £8.99/mo on Ryzen 9 hardware with NVMe SSD storage, and Glitch Guard DDoS protection is included.
Server Configuration Essentials
Key settings in server.properties:
- gamemode: survival, creative, adventure, or spectator
- difficulty: peaceful, easy, normal, hard
- max-players: default 20, increase based on your RAM
- view-distance: lower values (8 to 10) improve performance on busy servers
- spawn-protection: radius around spawn that only ops can modify
- enable-command-block: set to true for adventure maps and minigames
Frequently Asked Questions
Conclusion
Making a Minecraft server is straightforward whether you self-host or use a hosting provider. For casual play with a few friends, self-hosting works. For anything larger, public, or modded, a VPS gives you better performance, security, and uptime.
Run Your Own Minecraft Server
A UK VPS on AMD Ryzen 9 with NVMe, full root access and Glitch Guard DDoS protection. From £8.99/mo.