r/admincraft • u/TogiTogiT6 • 2d ago
Solved My self-hosted server suddenly got Getsockpot error and its driving me nuts
Edit: Solved! My ISP had turned on CGNAT on my network. I called them and got them to turn it off, which resolved my issue.
I recently started a modded Minecraft server with me and my friends that i host myself using a spare PC at home.
I had sat up everything, port forwarded and me and my friends could play for a couple of weeks, but suddenly a couple of days ago they couldn’t join anymore.
Now they get a Getsockpot error. I have made sure to double-check everything on my end. I didnt change anythinh before the error, but i double-checked my router settings and port forwarding, and all is as it should. I am also able to join the server using the computers local IP, so i dont think the fault lies on the server itself. I have also tried lanching other old minecraft worlds/games, but they get the same problem now, even though they did not have the problem before.
I have looked into it for days now but for the life of me i cannot figure out what the issue is. I have trid to update my firewall settings on the PC hosting the server also, but to no help.
One thing i did notice however is that the error began to happen around the same time as my public ip got automatically updated, but i dont know if that is connected, or just random coincidence. (And yes we ofc are using the new/current public ip and port to try to connect)
Any help would be greatly appreciated! Because i have no idea what i have left to do. I havent even identified what is causling the problem yet, so i dont know how to fix it. I havent changed anything, and i have hosted minecraft servers multiple times before, so i dont know why this strikes now.
And if its relevant, my router is an ASUS TUF-AX5400
1
u/Civil-Sock 2d ago
your internet provider probably turned on CGNAT, that's what happened to me
call them and ask to turn off CGNAT and give you a public IP, that's what fixed it for me
you'll need to pay and extra 5 dollars a month but i think it's worth it
1
u/solarch 2d ago
Since your local IP still works and it broke when your public IP changed, compare the WAN IP on the ASUS admin page (Network Map) with what a site like whatismyip shows. If they differ, or the WAN IP starts with 100.64 to 100.127, 10 or 192.168, your ISP has put you behind CGNAT and no port forward can reach you until they give you a public IPv4. If they match, check the forward still points at the PC's current local IP (DHCP may have moved it) and test port 25565 with an online port checker while the server is running.