Minecraft – Randomly lost connection to the Minecraft server, can’t rejoin

minecraft-java-editionminecraft-java-edition-server

Recently, I made a Minecraft server to play with my friends on. I'm hosting it off an old laptop and playing it from my PC. I have port forwarded my router and I'm using NoIP as a hostname for my friends to join through, and I connect through my public IP (which I get through searching "my ip" on google on the laptop). At first, there were no issues and I played for about an hour with friends before I got randomly disconnected to the multiplayer screen with no error.

I could no longer ping my server and it would look like thisthis
I got this error when joining this

My friends stayed connected however I couldn't regain connection so we decided to leave it. I made a post on this forum however about 2 hours later, I checked again and I could play fine, so I removed the post. I played for a bit longer then went offline and there were no more issues. I tried logging on this morning but only to get this issue again.

I tried:

  • refreshing the multiplayer menu
  • restarting Minecraft
  • relogging my Minecraft account
  • restarting the server from my laptop
  • restarting my PC
  • restarting my laptop
  • allowing Java and the Minecraft launcher access through the firewall
  • checked the ports (25565 is open)
  • connecting through "myip", "myip:25565", the NoIP hostname, "localhost" and "localhost:25565" (none worked, and obviously localhost wouldn't)

I can play other Multiplayer servers (such as Hypixel, Manacube etc) but I just can't connect to my server whereas my friends can. I'm not sure why this is the case, any help would be appreciated!

Best Answer

If the Server and the Client applications are connected to the same physical network (wired and / or wirelessly) it is best to attempt to connect using the local IP and not your external IP address. (Please note that firewall rules may need to be considered to incorporate the external & internal connections).

Connecting to a device that is internal to your network using your external IP can sometimes result in NAT issues, this can be for a few reasons and is off topic for this stack exchange channel. (Google "NAT Loopback" for further information on the topic.)

Related Topic