Problem Description: Everytime my GF joins my server she gets met with the getsockopt error i also get this error when connecting directly through LAN however i can still get into the server through the Primary Endpoint the server gives me is there a way to get around this
Steps to reproduce:
Step 1 Started up server with modpack fully installed
Step 2 Ran from ip direct connect and worked perfectly
Step 3 GF joins and she gets the error message
Actions taken to resolve so far: Ive installed and set up playit.gg and it “works” however my server ping is way to high i payed for the upgrade and its abysmal if it even helped at all we are running only 1 state over so it shouldnt be this bad it makes the game borderline unplayable
Also im a new server owner so i may not understand a lot of the things you may suggest ive read some things online and got a bit confused so if there is a fix can you guide me a little bit
You need to port forward the server and give anyone connecting from outside your network your public IP address.
Google your router’s model plus “how to port forward”, then port forward 25565 UDP/TCP (Java), 19132 UDP (Bedrock), or whatever game/query ports you see in AMP. (you do not need to port forward RCON or SFTP)
Then Google “what is my IP” to get your public IP
With Minecraft you can use this site to check if your port forwards are working: https://mcsrvstat.us/
Some routers don’t allow you to connect to your own public IP (usually a setting named loopback/reflection/hairpin NAT)
In such cases you can try testing the connection using a VPN or mobile data.
With Minecraft specifically you can use this site to check external connectivity: https://mcsrvstat.us/
Check to see if the WAN IP in your router matches the public IP you see when you google “what is my IP”.
If they don’t match, then you may be behind a CGNAT, meaning you can’t port forward over IPv4, but some ISPs will give you a IPv6 address you can try (not all games support IPv6 however).
The easiest way around this would be to call your ISP and ask for a dedicated IP (some might just give it to you for free), some other ways around this include using a service like playit.gg or localxpose.io to tunnel the traffic outside of your network.