r/ComputerSecurity • u/yes__300 • Aug 30 '26
I port-forwarded my minecraft server and an unrecognised account joined.
If they joined the server, that must mean they had my IP, and now I'm afraid my IP got leaked. Before this, I sent the IP to my brother on Discord, but neither of our accounts got hacked. Is this something i need to be worried about or just ignore it?
18
Upvotes
40
u/plump-lamp Aug 30 '26
Someone just scans public facing IP addresses and did a port scan. It's not rocket science. Anytime you leave something public it'll be found (and eventually hacked)
23
u/Rentun Aug 31 '26
There are only 4 billion IPV4 addresses. Someone "has" your IP in the same way that someone "knows" the number 3,783,988. It's not meaningful, it's just a number in a database.
It's trivial to port scan every IP address on the internet for well known ports.
9
u/Workadis Aug 31 '26
Port forwards are always risky. Millions of scans from probes go out at all times of the day. If you are sharing with friends use something to protect yourself or create a white list
3
u/Stevogangstar Aug 30 '26
Ya your IP address gets scanned like 20 times an hour every day.
3
u/dariusbiggs Sep 01 '26
The port forward you created opened a port on the public side of your Internet connection directly to your Minecraft server.
You have now experienced something most normal users of the Internet never see or realize. At any given point in time there is some malicious traffic to every IP on the Internet, scanning for common insecure, vulnerable, or just open ports. This is not, one or two request per hour or day, this can easily be closer to 50+ attempts per second depending on various criteria (that's what I see coming daily to the low use systems I maintain around the world for various reasons).
Opening an insecure port to Minecraft, that's what's going to happen. Always set a password on the server and client connections if it is supported. If you can, restrict the inbound traffic to the port forward to the public IP address of the others you want to connect (or the network range of their Internet provider).
5
u/maxwell321 Aug 30 '26
No need to worry, just add a whitelist to your server and/or change the default port from 25565 to something else. There are bots running scripts online that crawls the entirety of the internet and tries every single ip address combination and attempts to find minecraft severs running. No biggie
2
u/SmallAppendixEnergy Aug 31 '26
You can create a whitelist of accounts you’d allow to join.
2
u/the_swanny Sep 01 '26
There are hundreds of bots that are constantly scanning every IP for common open ports (80, 443, 22, 21, 25565 etc). Your IP cannot leak, because everyone knows it already exists. Someone simply saw the port was open, and attempted to connect.
2
u/Sea_Membership1312 Sep 02 '26
You can scan the entire internet in about 2 hours with a 1gbit connection. So any well known port that is open will be found in a few hours. Just whitelist you Minecraft server if you don't want others to join.
1
u/xenophod Aug 31 '26
get a free account from playit.gg and create a tunnel to your Minecraft server. That way you don't have to punch holes in your router with port forwarding.
1
u/DMmeYourMCbuilds Aug 31 '26
Tell that mother fucker to build you a dope ass castle or something.
1
u/MistrMizer Aug 31 '26
You should worry about it, enable your whitelist, and then promptly stop worrying about it
1
u/InteractionSoft14 Sep 02 '26
Port forwarding is no longer considered good practice for many use cases. If you decide to open a port you need to secure it. Alternatively you can setup tailscale so your friends can connect without the need for port forwarding and ensuring your server is only accessible by the people you want
1
u/3loodhound Sep 02 '26
A. Don’t open a port before protecting any service. B. Keep anything internet connected up to date especially if it has an open port.
1
u/RavenousTitan818 Sep 02 '26
Sounds like you don't know what you're doing and probably shouldn't be hosting a public facing server. Use tailscale or zerotier or something.
1
u/Disastrous_Gear_421 Sep 02 '26
If you don’t know what you are doing, then don’t expose stuff to the internet
1
u/bfaithless Sep 03 '26
There are bot networks on the internet constantly sending packets to all known public IPs, trying to check if there is an open port which they could use as an entry point for an attack. Nobody needs to know your IP belongs to you. Your IP is just already known as it is a part of a larger IP range on the public internet. You need protection mechanisms like authentication to prevent others from accessing your systems from the internet.