Friends ask for a Minecraft server, and a white IP has not been bought from the provider — or it has, but spending the money hurts. The task is typical: the server is needed for evenings and weekends, and paying for it around the clock is not appealing. There is a way out: a home PC or a paid data center, connected by a tunnel. We go through three working paths and count the money. Why there is “nowhere to knock” in the first place — in the article on CGNAT and tunnels.
All three paths share one frame: the side behind NAT always initiates the connection, so ports on the router are not opened in any of the variants. The differences are where the Java machine itself runs, who is responsible for protection, and what it costs per month.
Option 1: Paid Hosting
2026 prices: about 4–8 dollars a month for 2 GB of RAM and 7–14 dollars for 4 GB; budget offers run about 0.90–1.10 dollars per gigabyte, and European providers about 1.10 euros per gigabyte. Specifics: Gravel Host charges 5.99 dollars for 2 GB on shared nodes; a plan with 4 GB, 1 vCPU, and 50 GB of NVMe for 6.99 dollars with an 11.99 renewal also comes up.
Pros: DDoS protection and support are already in the price, and the home PC does not have to run 24/7 — your internet going down or a move does not drop the world on your friends, it lives in a data center. Cons: shared hosts can have limits on plugins and versions, and provider backups are usually a paid option — do not count on automatic copies. An honest caveat: there are few systematic comparisons of plugins and versions in our sample — little data on this, check against your own builds.
What it looks like in practice. The first month’s price is not the whole budget: in the example above the renewal costs 11.99 dollars against 6.99 at the start, so calculate the yearly sum, not the first payment. Before buying, check three things: support for the version you need and your build, limits on plugins, and whether automatic backups are included in the price. And match your friends’ schedule to the task: an around-the-clock world is needed when people log in regardless of your schedule — otherwise an “evenings” server on a home PC is more honest and cheaper.
Option 2: A Home Server and playit.gg
The playit.gg agent installs on the PC, holds an outbound tunnel to the playit network, and hands out an address like example.playit.gg. It works even behind CGNAT, is free for basic use, the home IP stays hidden, and the router is not touched. Game traffic — both TCP and UDP — goes through the tunnel with no router settings. One nuance: the network has usage rules — read them so your server does not get blocked.
How it works inside: the agent opens the connection to the playit network itself, so the provider’s translation does not bother it — the same “the side behind NAT initiates” logic as in any tunnel. You pay nothing for the tunnel or the machine — basic use is free, and the expenses come down to electricity and administration time. The flip side is dependence on a third-party network: if the network is unavailable, your server is unavailable, and the usage rules are changed by the network’s owner, not by you.
The Java machine itself needs memory: hosting plans start at 2 GB — budget that much into the home PC requirements. If the machine is weaker, look at the relay option.
Option 3: Your Own Micro-VPS as a Relay
frp or rathole on a VPS forward TCP 25565 outward; WireGuard or Tailscale is the “for your own” variant, with no public address at all. RAM estimate: 0.5–1 GB on micro plans suits only the relay, not the Java machine itself — the server stays at home. There are no direct measurements in the sample; the indirect reference is those same 2 GB at the hosts. What such a relay costs and what else a micro-VPS can carry — in the plan review; which software to pick — in the tunnel comparison.
An honest comparison with hosting: a relay at RUB 150–400 a month is cheaper than a shared plan at 4–8 dollars, and the world runs on your hardware with no plugin limits — but nobody includes DDoS protection and backups in the price: for VPS providers these are usually paid options (RUVDS, for one, makes both backups and DDoS protection paid). Plus, the home PC has to run for as long as the server lives.
When the relay makes sense in practice: the micro-VPS is already bought for a CLI proxy or a webhook receiver, friends do not need a public address “for advertising”, and one person handles administration. In this scenario frp or rathole is added to the existing server as a new config block, and players connect to port 25565 on the VPS’s address without ever knowing your home network exists.
How It Looks in Practice: The frp + rathole Combo
A relay doesn’t have to be a single tool: a typical scenario is two instruments on one micro-VPS, because they cover different jobs. frp holds the public port for friends who need a direct address; rathole covers the backup path in case the main tunnel goes down. Both clients connect outbound to the server, so behind CGNAT they work the same way.
The frp server side (frps.toml) is minimal: bindPort 7000 is the port clients will connect to, plus an auth token. The client side on the home PC (frpc.toml) adds one block: serverAddr with the VPS address, port 7000, the same token, and a proxy of type tcp with local port 25565 and remote port 25565 — that’s the one your friends will type into the game client.
# frps.toml (on the VPS)
bindPort = 7000
auth.method = "token"
auth.token = "long-random-token"
# frpc.toml (on the home PC, the Java server listens on 25565)
serverAddr = "203.0.113.10"
serverPort = 7000
auth.method = "token"
auth.token = "long-random-token"
[[proxies]]
name = "minecraft"
type = "tcp"
localIP = "127.0.0.1"
localPort = 25565
remotePort = 25565rathole is configured with the same logic in a different syntax: the server (rathole-server) listens on port 2333, and the client (rathole-client) maintains the tunnel with remote_port 25565 and the local address 127.0.0.1:25565. If both daemons start as systemd services, a VPS or home-PC reboot restores the tunnel automatically — that’s the main convenience of the combo over playit.gg: you own both the server and the client, and can add a second tunnel for another game or a web panel without a new provider.
What not to confuse during setup: port 7000 (or 2333 with rathole) is a service port, needed only by the tunnel, and it’s best closed with a firewall, leaving only 25565 open; the local port of the Java server in the config must match the port the server actually listens on (25565 by default — check server.properties); remotePort in the config is the VPS port your friends see, and it can differ from the local one if the VPS provider doesn’t give you 25565. There are no direct latency measurements through the relay in our sample — little data on this; the indirect reference is that playing through a tunnel adds one hop, usually imperceptible on local and regional servers, but it can be felt on foreign VPSes.
Why Not Cloudflare Tunnel
The tool is oriented at HTTP and TCP through your own domain; for games, including UDP servers, the community uses playit.gg. There are few details on Tunnel’s UDP restrictions in the sample, so the conclusion is simple: for games — playit.gg.
The mechanics explain the reason: the cloudflared daemon holds an outbound connection to the edge network and serves the CNAME records of your domain — the construction is built for web scenarios. Game traffic lives by different rules, and a specialized tool is simpler to set up and more predictable here.
World Backups
A world your friends spent a month on is painful to lose. The typical route is cron copies of the world folder and plugins for automatic backups. But there are no ready-made, broken-down recipes in our sample — little data on this, a topic for a separate article. For now the rule is simple: copy the world folder before every major update of the build.
A practical refinement: copy the world folder whole, not just the configs — configs are restorable, your friends’ progress is not. And make sure the copy does not live on the same disk as the world: a disk failure should not take out both the original and the backup at once.
What to Choose
- a server for evenings and weekends, your own builds, a zero budget — a home PC and playit.gg;
- an around-the-clock world, friends in different time zones, protection from attacks needed — hosting at 4–8 dollars for 2 GB;
- a micro-VPS already bought for proxies or tunnels — add a frp or rathole relay to it for the same money.
Answers to Typical Objections
“I will buy a white IP from the provider — that will do.” If you are behind CGNAT, a white address does solve the reachability problem. But then the details begin: a dynamic address needs a DDNS name, port 25565 opens outward and becomes visible to scanners, and the payment stretches out month after month. A tunnel closes all of it in one move: an address like example.playit.gg is enough for friends to connect.
“I will rent a bigger regular VPS and put the Java machine there.” A plan with 2 GB of RAM can indeed carry a starter world, but that is no longer the micro class, and there are no measurements of Minecraft performance on such VPS in our sample — little data on this. Dedicated hosts add DDoS protection and support on top; with regular VPS providers, protection is usually a paid option.
“playit.gg is someone else’s network — is that safe?” Traffic goes through the network’s relay, but the home IP stays hidden and the ports stay closed. The main risk is not technical but contractual — the usage rules mentioned above.
The bottom line: a server for a group for an evening — playit.gg, free and without a white IP; an around-the-clock world with DDoS protection — hosting from 4–8 dollars for 2 GB; if a micro-VPS is already bought for other tasks — add a frp relay to it. With any scheme, ports on the router stay closed: the tunnel is always initiated by the side behind NAT.
Action: check the RAM of the machine the Java server will run on — the reference is 2 GB or more — pick a scheme from the list above and, if you settle on playit.gg, read the network rules before the first launch. The prices and limits in the article are current as of fall 2026.
