Running your own Minecraft server in 2019 gives you full control over rules, mods, and who joins your world. This guide walks through practical steps to set up a stable server on your local machine or a rented VPS.
You can host mini-games, survival worlds, or creative builds while learning how networks, ports, and server software work under the hood.
| Step | Localhost | VPS | Estimated Time |
|---|---|---|---|
| Download server files | Home computer | Cloud instance | 5 minutes |
| Open ports | Manual router setup | Firewall rules | 10–20 minutes |
| Allocate RAM | Edit launch script | Adjust VM memory | 5–10 minutes |
| Configure gameplay | Edit server.properties | Same file via SSH | 10–30 minutes |
| Invite players | Public IP or DDNS | Public IP | 5 minutes |
Download and Install Minecraft Server Software
Start by grabbing the official server jar from Mojang’s launcher or website. You need the exact version that matches the clients your friends will use.
Place the jar in a clean folder, run it once to generate default files, then stop the process before editing settings.
Configure Server Properties and Settings
Set Server Options
Edit server.properties to set the server port, game mode, difficulty, and max players. Use online mode true unless you run an offline local event.
Optimize Performance Flags
Adjust view-distance, simulation-distance, and enable-query carefully on a VPS to avoid unnecessary network load and keep TPS high.
Allocate Memory and Launch the Server
Java needs enough RAM to handle chunks, entities, and plugins. Use a start script with -Xmx and -Xms to reserve memory instead of letting the JVM guess.
On Linux, a simple script like java -Xmx2G -Xms2G -jar minecraft_server.jar nogui prevents out-of-memory crashes during peak playtime.
Open Ports and Manage Network
Port 25565 is the default for Minecraft, but you can change it if your router or hosting provider requires it. Forward the port and test with an external checker before inviting friends.
On a VPS, use a firewall to allow only necessary traffic and log suspicious connection attempts to reduce noise and latency spikes.
Final Setup Checklist
- Download the correct server jar and place it in a dedicated folder
- Edit server.properties for port, game mode, and player limits
- Allocate RAM with a start script to avoid Java memory issues
- Open port 25565 and verify connectivity with an external tool
- Schedule regular backups and keep a copy off-site
- Test with a small group before opening to the public
FAQ
Reader questions
Do I need a static IP to host a server in 2019?
For a stable public server, yes. Use a static IP from your ISP or a DDNS service, and forward port 25565 on your router so players can reach your machine.
Can I run a server on the same PC where I play Minecraft?
Yes, but expect some lag on weaker machines. Reserve at least 2 GB of RAM for the server and avoid heavy world generation while you test performance with friends joining locally.
What if my world gets corrupted after a crash?
Stop the server, back up the world folder, then restart in safe mode. Regular backups every few hours, using a cron job or script, reduce the risk of losing builds and player data.
How do I install plugins or mods on the server? How do I install plugins or mods on the server?
For plugins, use Paper or Spigot, drop the jar and plugin files into the plugins folder, and restart. For mods, install Forge or Fabric on the server following the exact version matching your client mods.