Repost: Due to

Hello! I'm not to sure if I can post this here but I want to help anyone that is trying to make their own Minecraft server and are having trouble having friends connect to it. If this solution has already been posted here before I apologize. I just want to provide all the information I've found out today to potentially help anyone that has been going through the same issue.

**Context:** Me and my SO wanted to create a server so that we can play with our friend in another state. We followed The Breakdown's video on how to create a minecraft server on your personal PC but our friend kept getting the Getsockop error message and couldn't connect. After weeks of troubleshooting, making sure that everyone's computer has java and minecraft checked off on their windows defender firewall, making sure that everyone's DNS server connection was all the same, we still couldn't get them to connect to the server. We tried again today with some fresh minds and after a few hours of more troubleshooting we FINALLY got them to connect.

**Theory:** So our theory started with us wondering if the problem was due to our public IP address. So I started from there.

I have ATT as my internet provider so I have their BGW320-500 wifi modem but I have everyone in my home connected through my Asus RT-AX3000 Wifi router. I did all of the port forwarding through there because I assumed that my modem would just allow any traffic go through there since all the PC's are connected via LAN through there. THATS WHERE I WAS WRONG!

**Solution:** Make sure you do the port forwarding through your ISP Modem and not through a 3rd Party wifi router! This seems to be where we were going wrong when setting up our network. It's best to connect to your modem through chrome than through an app (ATT has an app were you can connect to your modem but it provides no help for advance changes.) For ATT modems, after you connect to it, Go to Firewall>NAT/Gaming. It will ask for your Device Access Code. It should be either behind or on the bottom of the modem. After connecting, click on Custom Services under Manage Custom Services. Type out whatever you want for Service Name, for Global Port Range type in 25565-25565 and for Base Host Port also type 25565. Make sure the Protocol is TCP/UDP and then click Add. After that edit the Device to your PC. Confirm what your PC's name is by matching your PC's ip through ipconfig in cmd. After all that you should be able to connect on Minecraft if you click on Direct Connect.

Hopefully this helps anyone that's been going through it trying to get your friends to connect to your servers! If anyone has questions I'll try to answer as quickly as possible. I'll make any edits if there's any updates to make this work.

Voir le contenu lié