Minecraft · Guide

How to Keep a Minecraft Server Online 24/7

Updated August 2, 2026 15 min read

On this page
  1. Why your server dies the moment you stop looking
  2. What 99.9% uptime actually means
  3. What a PC running non-stop really asks of you
  4. Your home IP becomes the server address
  5. Own PC, VPS or managed hosting: who does the work
  6. How to keep a self-hosted server alive anyway
  7. When the hassle stops being worth it
  8. FAQ

Getting a Minecraft server running is the easy part. Keeping it running — through the night, while you are at work, when Windows decides to reboot for an update — is a completely different problem, and it is the one that quietly kills most home-run servers.

This guide is about that second problem. Not which host to pick, but what actually takes a server offline, what "always on" really demands of a machine sitting in your bedroom, and the concrete things you can do to keep one alive: auto-restart, watchdogs, scheduled restarts and off-machine backups. By the end you will know exactly which of the three ways to run a server matches how much of that work you are willing to own.

Why your server dies the moment you stop looking

A Minecraft server is one program running on one machine. Nothing watches over it, nothing restarts it, and nothing keeps the machine awake on its behalf. When people say "my server keeps going offline", it is almost always one of these five, and none of them are Minecraft's fault:

  • The PC went to sleep. The default power settings on every desktop and laptop suspend the machine after a period of no keyboard or mouse activity. A server that is busy serving players still counts as idle, because nobody is touching the keyboard.
  • Fast Startup made a shutdown look like a restart. On Windows this is on by default and is the single most confusing one: the machine appears to come back up, but your server process is gone and the startup task you set never ran.
  • An update rebooted it at 3 a.m. Windows Update and unattended upgrades on Linux both reboot without asking. If nothing starts your server on boot, it simply never comes back.
  • Someone closed the lid, logged out, or unplugged it. Logging out of a user session ends the processes in it. A laptop lid closing suspends the machine. A housemate needing the socket ends the discussion entirely.
  • The power or the internet blipped. A one-second cut is enough. Everyone is disconnected, and nothing brings the server back on its own.
Reassurance first: none of this damages your world. These are availability failures, not corruption — the server was there, then it was not. The world folder survives an abrupt shutdown in almost every case, and the fixes further down are all about making sure the process comes back rather than about repairing anything.

What 99.9% uptime actually means

"Always on" is a feeling. Uptime is a measurement, and the distinction matters the moment you try to work out whether your server is actually reliable or you have just not been watching when it dropped.

Real uptime is measured from outside the machine: something on the internet connects to your server's port every minute and records whether it answered. That is the only definition that counts, because it captures the cases your own PC cannot report on — the machine asleep, the internet down, the process hung. "My PC was on all week" is not an uptime figure.

Percentages sound abstract until you convert them into time. Over a 30-day month:

UptimeAllowed downtime per monthWhat that looks like
99%about 7 hours 12 minutesA whole evening gone, every month
99.5%about 3 hours 36 minutesOne bad afternoon
99.9%about 43 minutesOne reboot and a slow restart
99.99%about 4 minutesBarely a blip

Read that table next to the previous section and the problem with home hosting becomes obvious: a single Windows Update reboot cycle already spends most of a 99.9% month. Not a crisis, not a hardware failure — one routine reboot. Two of those, plus one evening where the machine slept, and you are down at 99% territory without anything having actually gone wrong.

If you want to know your real number rather than guess it, point a free external uptime monitor at your server's address and port and let it run for a month. It will tell you things you did not know, usually about the hours you were asleep. For reference, HytHost runs to a target of 99.9% uptime — the same yardstick, measured the same way.

What a PC running non-stop really asks of you

A machine that never turns off is a different machine from one you use in the evenings. Over a year it accumulates roughly 8,760 hours of runtime — fans spinning, drives turning, heat coming off it continuously. It lives somewhere, and if that somewhere is your bedroom you will learn exactly how audible a case fan is at 3 a.m. in July. None of this is dramatic, but it is the part people forget when they picture "just leaving it on".

It also draws power the entire time, which does show up on a bill. That is a money question rather than an uptime question, so it lives in its own guide — see what a Minecraft server actually costs for the arithmetic.

The bigger surprise is usually not the machine. It is the line it sits behind.

Home connections are built to download, not to serve

Your download speed is irrelevant here. A server sends — a continuous stream of world updates to every connected player — so your upload speed is the ceiling on how many people can play smoothly. Home plans are usually sold with a large download number and a much smaller upload one, and that smaller number is the only one your server cares about. When a server "lags for everyone but the host", this is very often why.

Your address changes without warning

Most home connections get a dynamic IP: it changes when the router reboots, when the line drops, or on the provider's own schedule. Every friend who saved your server in their list now has a dead entry, and you get to send the new address around again. A dynamic DNS service papers over this by giving you a stable hostname that follows the changing address — set one up before you hand the address out, not after.

Some connections cannot host at all

This one catches people after hours of troubleshooting. Many providers place home customers behind carrier-grade NAT, which means you do not have your own public address — you share one. Port forwarding cannot work in that situation no matter how correctly you configure the router, because there is no address to forward from. Others block common server ports outright, or forbid running servers in the terms of the contract. If port forwarding is set up perfectly and outside players still cannot connect, this is the thing to check next.

Your home IP becomes the server address

To let anyone outside your house connect, you forward a port on your router — and from that moment your server's address is your household's public IP address. Everyone you invite has it. So does everyone they pass it to, and anyone who sees it in a screenshot, a Discord message or a server list.

The important shift is what the target becomes. An attack aimed at a hosted server hits that server. An attack aimed at your home address hits the house: your connection, your family's phones, someone's work call, the TV. You cannot filter it from inside, because the traffic has already saturated the line by the time it reaches your router. Turning the server off does not help either — the address is still the address.

An address is permanent once it is out. You cannot un-share it. It gets logged, screenshotted and pasted, and a dynamic IP is not protection — it changes on the provider's schedule, not on yours, and often not for weeks. Treat handing out your home address as a one-way decision, especially if the server is going to be public rather than five friends.

This is the one difference between home and datacenter hosting that has no workaround at home. A hosted server's address is disposable and belongs to the server, not to where you live, and it sits behind Voxility DDoS protection that absorbs attacks before they reach it. For a private server shared with people you know, home hosting is a reasonable risk. For anything public, it is the reason most people stop.

Own PC, VPS or managed hosting: who does the work

All three of these can be online around the clock. That is not what separates them. What separates them is who is responsible when they are not — and that is the question worth deciding on, because it is the one you live with every week.

Your own PCA VPS you rentManaged game hosting
Who patches the OS and JavaYouYouThe host
Who restarts it at 4 a.m. when it hangsYou, once you wake upYou, or a script you wroteAutomatic, plus scheduled restarts
Who absorbs a DDoS attackNobody — it hits your houseDepends on the providerVoxility DDoS protection
What happens when your power or line dropsEveryone is disconnectedUnaffectedUnaffected
Who notices it is down firstYour playersYour players, unless you monitor itMonitored for you
Effort to reach a stable 24/7High, and permanentHigh once, then ongoingNone

The middle column is the one people misjudge. A VPS fixes the two hardest problems immediately — it has a real address and hardware that never sleeps — but it hands you a bare Linux machine and makes you the system administrator. You install and update Java, you configure the firewall, you write the service that starts the server on boot, you apply security patches, you set up and test the backups. None of that is difficult, but all of it is now yours, permanently, and an unpatched internet-facing machine is a liability rather than a server.

The honest way to choose: a VPS is the right answer if you want to learn Linux and administering it is part of the appeal. It is the wrong answer if what you wanted was to play with your friends tonight. Managed hosting is the same server without the sysadmin job attached; your own PC is the right answer for LAN and for learning. There is no universally correct column — only the one that matches how you want to spend your evenings.

No sleep settings, no boot scripts, no 4 a.m. restarts — a HytHost Minecraft server stays up whether your PC is on or not.

See Minecraft plans

How to keep a self-hosted server alive anyway

If you are staying on your own machine, these are the things that move a home server from "up when I remember" to genuinely reliable. Do them in this order — the first two fix most outages on their own.

Stop the machine going to sleep

Set the power plan so the machine never sleeps and never turns the disks off, set the lid-close action to do nothing on a laptop, and disable hibernation. On Windows, also turn off Fast Startup — it is the reason a machine can look like it restarted cleanly while your startup task never ran. These settings are the difference between an outage every night and none.

Start the server automatically on boot

A reboot you did not plan for should cost you a minute, not an evening. On Linux, a systemd unit both starts the server at boot and restarts it if it exits:

[Unit]
Description=Minecraft server
After=network.target

[Service]
User=minecraft
WorkingDirectory=/opt/minecraft
ExecStart=/usr/bin/java -Xms2G -Xmx4G -jar server.jar nogui
Restart=always
RestartSec=15

[Install]
WantedBy=multi-user.target

On Windows the equivalent is a Task Scheduler task set to run at startup rather than at logon — at logon means nothing happens until somebody signs in, which defeats the point after an overnight reboot.

Add a watchdog, because "running" is not "working"

This is the step almost everyone skips, and it is the one that catches the worst outages. A Minecraft server that has run out of memory or deadlocked is still a running process: systemd sees it alive and does nothing, while players get a timeout. The only reliable test is whether the port actually answers.

#!/bin/bash
while true; do
  if ! timeout 5 bash -c "echo > /dev/tcp/127.0.0.1/25565"; then
    systemctl restart minecraft
  fi
  sleep 60
done

Crude, and effective: every minute it checks whether the server answers on its port, and restarts it if not. Run it as its own service so it survives a reboot too.

Restart it on purpose, before it needs it

Long-running Java servers gradually slow down as memory fragments and plugins accumulate state — the classic "it was fine this morning, it is chugging by evening". A scheduled daily restart at a quiet hour resets all of that in under a minute. Warn players in chat with a countdown so nobody loses a build, and pick an hour when nobody is on.

Back up somewhere other than the machine

A backup on the same disk is not a backup — it is a second copy waiting for the same drive to fail. Copy the world folder on a schedule to a different disk, another machine, or cloud storage. Then do the part nobody does: restore one, once, and confirm the world actually loads. An untested backup is a guess.

Give the address something stable to point at

Set up dynamic DNS so your players connect to a hostname that follows your changing address instead of to a number that expires. It costs nothing and it saves the recurring "the server is down" message that really means "the IP moved".

When the hassle stops being worth it

Everything above genuinely works. Plenty of people run a solid home server for years using exactly those steps. But there are three moments where the effort stops paying for itself, and they are worth recognising when they arrive:

  • Someone plays when you are not there. The moment the server needs to be up while you are asleep, at work or away for a weekend, you are on call for it — and a machine in your house cannot be fixed from someone else's kitchen.
  • Someone else now depends on it. A world with a few friends' months of building in it is no longer a hobby project. The failure that used to be an inconvenience is now everybody's loss.
  • You have restarted it by hand more than twice this month. That is the signal that you are the watchdog, and it does not improve on its own.

The counter-case is just as real, and worth saying plainly: if you play on a LAN, if the machine is on anyway for other reasons, or if running the thing is itself the point, self-hosting remains the right answer and none of the above applies to you.

If you have crossed one of those lines, moving to a managed Minecraft server hands the whole list — sleep settings, boot scripts, watchdogs, scheduled restarts, off-machine backups and DDoS filtering — to someone whose job it is. Plans start small and upgrade in place as the server grows, so you are not deciding your final size today. And if you would rather try a free option first, that is a fair question with its own answer: see the honest look at free Minecraft hosting.

FAQ

Frequently asked questions

If the server runs on your PC, yes — the server is a program on that machine, so when it sleeps, reboots or shuts down, the server goes with it. There is no way around that other than moving the server somewhere that is always on. If you keep it at home, disable sleep and hibernation, turn off Fast Startup on Windows, and set the server to start automatically at boot so an unexpected restart does not take it offline for the rest of the day.

Four things, in order: stop the machine sleeping, start the server automatically at boot, add a watchdog that checks the port every minute and restarts the server if it stops answering, and schedule a daily restart at a quiet hour. The watchdog matters most — a server that has run out of memory is still a "running" process, so nothing else notices it has stopped working. Beyond that, you are relying on your power and internet staying up while nobody is there to react.

About 43 minutes a month. For comparison, 99% is roughly 7 hours 12 minutes, 99.5% is about 3 hours 36 minutes, and 99.99% is around 4 minutes. That is why a home server rarely reaches 99.9% — a single Windows Update reboot cycle can consume most of the month's allowance on its own, without anything having actually gone wrong. Uptime is measured from outside by something testing your port, not by whether the machine was switched on.

The software is free and there is no licence stopping you, so yes in that sense. What you take on instead is operational: the machine has to never sleep, survive reboots, restart itself when it hangs, and keep its own backups, and your home connection has to tolerate serving players continuously. Your upload speed caps how many can play smoothly, and a dynamic IP or carrier-grade NAT can make the server unreachable from outside entirely. If you want free hosting rather than free software, that is a different question — see our guide to free Minecraft hosting.

In order of likelihood: the machine is going to sleep because no one is touching the keyboard, Fast Startup is making shutdowns look like restarts so your startup task never runs, an automatic update rebooted it overnight, or the server ran out of memory and hung without actually exiting. That last one is the sneaky case — the process is still there, so nothing restarts it, but players get a timeout. A watchdog that tests the port rather than the process catches it.

You do not need a static IP — dynamic DNS gives your players a hostname that follows your changing address, which solves it for free. A VPS is a bigger step: it fixes the address and gives you hardware that never sleeps, but it hands you a bare Linux machine to administer, so you own the updates, the firewall, the boot service and the backups. If you want the always-on part without the system administration, managed game hosting is the same result with that work already done.

Let something else stay awake

Sleep settings, boot scripts, watchdogs, scheduled restarts, off-machine backups and DDoS filtering — all handled, with a target of 99.9% uptime. Your world stays up whether your PC is on or not.

Live chat 8 AM – 11 PM (Chișinău time) · tickets answered during business hours