I run a small Paper server for friends from my PC using my residential IP. Strangers have tried to join repeatedly, including many accounts with autogenerated-looking names. The whitelist is on now. What might be happening, and what else should I do?
Why are strangers trying to join my Paper server, and how do I secure it?
Answers
A public Minecraft port can be found by automated scanning, even if you never advertised the address. Repeated attempts and generated-looking names could be automated, but the names alone don't tell you who is behind them or what they want.
Keep the whitelist enabled and add only your friends' exact account names. It blocks unlisted players from joining, though it won't stop connection attempts from reaching the server.
Reply to this answer
Check that online-mode is enabled in server.properties. That makes the server verify player accounts with Minecraft's authentication service. A whitelist is much less dependable if someone can simply connect using an allowed name without authentication.
Don't disable online mode just to get around login problems. If you use a proxy, its authentication and forwarding settings need their own careful configuration.
Reply to this answer
On the network side, forward only the port the server actually needs. Remove old port forwards and don't expose remote administration unless you really need it. A firewall rule allowing only your friends' IP addresses can cut down unwanted traffic, but that can be awkward if their addresses change.
Running the server through a private VPN is another option if everyone is willing to set it up. Then you can remove the public port forward.
Reply to this answer
Keep Paper, Java and your plugins updated, and remove plugins you don't need. Make backups of the world and configuration somewhere separate from the server PC. Those steps won't prevent scanning, but they help limit the damage if something goes wrong.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions