r/admincraft • • 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 Upvotes

6 comments sorted by

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/TogiTogiT6 2d ago

I think this is the issue, thanks! I will call them tomorrow and see what can be done.

1

u/Simulacra-01 Server Owner 2d ago

Or just close all ports and use PlayIt.gg to create a tunnel. It’s free if you don’t mind a randomly generated domain.

1

u/TogiTogiT6 1d ago

I called my ISP and i got them to turn off CGNAT. This did indeed solve my issue. Thanks again!

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.

1

u/TogiTogiT6 2d ago

Thank you so mich for your thorough explenation!

The WAN IP for my network does indeed start between 100.64 - 100.127, and is not the same as the public ip i get from something like whatismyip. I am guessing that CGNAT is indeed the culprit behind my problems.

I will try to contact my internet provider tomorrow for a possible fix.

Thanks again! This has been nagging me for so long.