Connectivity Problem with Minecraft - Connection refused - getsockopt

System Information

Field Value
Operating System Linux - Ubuntu 24.04.2 on x86_64
Product AMP ‘Phobos’ v2.6.2.0 (Mainline)
Virtualization None
Application Minecraft
Module MinecraftModule
Running in Container No
Current State Ready

Problem Description

Issue

I have 2 instanceses. The first one is a default minecraft server to play on with friends. It works fine and no issues so far.
I then wanted another instance as a fabric server and uploaded a world to it to play it with friends. I have et running and i can see the game files but, when i try to connect to it i get “Failed to connect to the server - Connection refused: getsockopt”. I have tried shutting down the first instance but to no ovail. i then tried changing the port on my playit.gg tunnel (that’s what i use to get public access to the server så friends can join) but it still says Connection Refused: getsockopt.
I have searched for at soloution and done all the firewall things i can and allowing all sorts of things through windows defender and firewall.

Reproduction Steps

  • Changed Port
  • Disable firewall and exclude programs from firewall and windows defender
  • Tried running it trough playit.gg where i have another instace running. Just changed port but still same error