Your Minecraft server runs on Hetzner or Netcup. Everything's great – until someone launches a DDoS attack. Suddenly no players can connect.
The problem: Most VPS providers have DDoS protection for websites, not for gaming. Minecraft uses its own protocol on port 25565 – which often isn't filtered.
In this guide I'll show you how to protect your server with TCPShield (free) or NeoProtect – without switching hosts.
What is a DDoS Attack?
DDoS stands for Distributed Denial of Service. In a DDoS attack, your server is flooded with so many requests that it can no longer serve legitimate players.
The principle is simple: Imagine 10,000 people calling a pizza place at the same time. The phone line is blocked, real customers can't get through. That's exactly what happens in a DDoS attack – just with data packets instead of calls.
Why "Distributed"? The attack doesn't come from a single computer, but from hundreds or thousands simultaneously. These "botnets" often consist of hacked PCs and IoT devices. That makes it hard to block the attack – you can't just ban one IP.
Typical effects:
- Server doesn't respond or is extremely slow
- Players get kicked or can't join
- Worst case: Server crashes completely
- With weak protection: Your entire VPS goes offline
Important: A DDoS attack is illegal in most jurisdictions. Yet it happens regularly because "booter" services are available for a few euros and perpetrators are rarely caught.
Why Standard DDoS Protection Isn't Enough
Hetzner, Netcup and Contabo all have DDoS protection. But it's optimized for web traffic – HTTP/HTTPS on ports 80/443. Minecraft works differently.
| Web DDoS Protection | Gaming DDoS Protection | |
|---|---|---|
| Protocol | HTTP/HTTPS | TCP/UDP (custom) |
| Ports | 80, 443 | 25565, 19132, etc. |
| Traffic Pattern | Request-Response | Continuous Stream |
| Attack Types | HTTP Floods, Slowloris | UDP Floods, Nullping, Query Floods |
| At Hetzner/Netcup | Well protected | Basic protection |
Typical Attacks on Minecraft Servers
UDP Flood: Mass UDP packets overload the network card. Server becomes unreachable. Partially filtered by standard protection.
Nullping / Packet Crasher: Exploits specifically developed for Minecraft that crash the server. Not filtered.
Query Flood: Thousands of server status requests per second. Overloads the CPU. Not filtered.
Fake Handshake: Simulated player connections that never complete. Fills connection slots. Not filtered.
This isn't criticism of Hetzner or Netcup – they're optimized for web hosting. For public Minecraft servers you need additional protection.
Do I Even Need DDoS Protection?
Not every server needs extra protection. Here's an honest assessment:
| Scenario | Players | Risk | Recommendation |
|---|---|---|---|
| Private server for friends | 5-10 | Low | Probably not needed. IP isn't public. |
| Whitelist server, not listed | 10-30 | Low | As long as IP isn't known, low risk. |
| Public server, on server lists | 20+ | Medium to High | DDoS protection recommended. You're a visible target. |
| Large network, YouTube/Twitch presence | 100+ | High | DDoS protection is mandatory. You will be attacked. |
| Server with competition/drama | Any | High | Competing servers or ex-players can be attackers. |
Good to know: Most attacks don't come from hackers, but from bored teenagers with "booter" services for €10/month.
Solution 1: TCPShield (Free to Start)
TCPShield is the best-known DDoS protection for Minecraft. It works as a reverse proxy: Players connect to TCPShield, TCPShield filters and forwards to your server.
How It Works
Player → TCPShield (Filter) → Your VPS
- Player connects to play.yourdomain.com
- DNS points to TCPShield (CNAME record)
- TCPShield receives the traffic
- Malicious packets are filtered
- Legitimate traffic is forwarded to your real server IP
- Your real IP stays hidden
Pricing
| Plan | Price | Features |
|---|---|---|
| Free | $0 | 1 backend server, 3 domains, basic DDoS protection, shared IPs |
| Pro | ~$20/month | Unlimited backends, dedicated IP, extended filtering, priority support |
Advantages
- Free plan for beginners
- Easy setup (5 minutes)
- Proven since 2015
- Over 50,000 servers use TCPShield
Disadvantages
- Latency +5-15ms (traffic takes detour)
- Free plan has shared IPs
- For BungeeCord/Velocity: Extra configuration needed
Setting Up TCPShield: Step by Step
1. Create Account
Go to tcpshield.com and register.
2. Create Network
Dashboard → Add Network
Name: e.g., "My MC Server"
3. Add Domain
Network Settings → Domains → Add Domain
Example: play.yourdomain.com
4. Add Backend Server
Backends → Add Backend
| Field | Value |
|---|---|
| IP Address | Your VPS IP (e.g., 116.203.xxx.xxx) |
| Port | 25565 |
5. Configure DNS
At your DNS provider (Cloudflare, Namecheap, etc.):
| Type | Name | Value |
|---|---|---|
| CNAME | play | Shown by TCPShield (e.g., abc123.tcpshield.com) |
Important: No A record! Must be CNAME.
6. Configure Firewall (IMPORTANT!)
So only TCPShield can access your server:
# Block all Minecraft connections except from TCPShield
sudo ufw deny 25565/tcp
# Allow TCPShield IPs (current list at tcpshield.com/ips)
sudo ufw allow from 104.21.0.0/16 to any port 25565
sudo ufw allow from 172.67.0.0/16 to any port 25565
# ... more IPs from the TCPShield list
Without this step, an attacker who knows your real IP can bypass TCPShield!
7. Test
Connect to play.yourdomain.com instead of the direct IP. In the server log you'll now see TCPShield IPs instead of player IPs.
Extra: TCPShield with Velocity/BungeeCord
If you use a proxy, you need to install the TCPShield plugin:
- Download the TCPShield plugin (tcpshield.com/downloads)
- Copy it to your proxy's plugins folder
- Restart proxy
- The plugin restores the real player IPs
Solution 2: NeoProtect (Premium)
NeoProtect is a European alternative with focus on performance and stability. Particularly interesting: Frankfurt server location for minimal latency.
Features
- Locations: Frankfurt, Amsterdam, London, Paris, and more
- 0ms time-to-mitigation (always-on filter)
- Customizable filter rules
- Webhooks for attack notifications
- Own panel with statistics
Pricing
| Plan | Price | Features |
|---|---|---|
| Starter | ~€10/month | 1 backend, 50 Mbit/s clean traffic, basic support |
| Pro | ~€25/month | 3 backends, 100 Mbit/s, priority support, custom rules |
When to Choose NeoProtect?
- You need lowest latency (Frankfurt location)
- You want European support
- The free TCPShield plan isn't enough anymore
- You run a larger network
Other Alternatives
Cloudflare Spectrum
Enterprise solution from Cloudflare. Protects any TCP/UDP ports.
- Price: From ~$20/month + traffic costs
- Advantages: Cloudflare infrastructure, very reliable
- Disadvantages: Expensive, traffic is billed, overkill for small servers
- For whom: Large networks with budget
OVH Game DDoS
OVH has specialized gaming DDoS protection built-in.
- Price: Included in server price
- Advantages: No extra setup, specifically optimized for Minecraft
- Disadvantages: Only if you switch to OVH, OVH more expensive than Hetzner
- For whom: Those who need a new server anyway
Shockbyte (large Minecraft host) uses OVH for exactly this reason.
Cosmic Guard / Papyrus
Newer providers with focus on Minecraft.
- Price: Varies
- Advantages: Often cheaper prices than TCPShield Pro
- Disadvantages: Less known, smaller infrastructure
- For whom: Those who want to test alternatives
Bonus: Hide Your Real Server IP
DDoS protection is useless if the attacker knows your real IP. Here's how to hide it:
Never share the real IP: Always use the protected domain (play.yourdomain.com).
Delete DNS history: If the IP was ever in DNS, tools like SecurityTrails can find it. New IP at Hetzner: Delete server, create new one.
No services on the same IP: No web server, no Pterodactyl panel on the game server IP. Use separate IPs or servers.
Check server list entry: Some server lists show the IP. Only use those that show the domain.
Check player reports: Angry players sometimes share the IP in Discord. Keep an eye on that.
Warning: Once the IP is known, often only a server move to a new IP helps.
Which Protection Should You Choose?
| Situation | Recommendation | Reason |
|---|---|---|
| Small server, tight budget | TCPShield Free | Free, sufficient for most attacks |
| Medium server, low latency important | NeoProtect Starter | Frankfurt location, professional support |
| Large network, budget available | TCPShield Pro or NeoProtect Pro | Dedicated IPs, extended features |
| Maximum security, enterprise | Cloudflare Spectrum or switch to OVH | Infrastructure from world-class providers |
Frequently Asked Questions
More Minecraft Guides
Server protected, but no VPS yet?
Compare VPS providers and find the right one for your Minecraft server.
Compare VPS

