Skip to main content

How to Fix the Getsockopt Error in Minecraft

1. Open Up ‘Windows Defender Firewall’

On your computer, search for ‘Windows Defender Firewall’ and click Open.



2. Select ‘Allow an App or Feature Through Firewall’

Next, navigate to ‘Allow an app or feature through Windows Defender Firewall’.

Windows Defender Firewall: Allow an app or feature through Windows Defender Firewall

3. Press Change Settings

To allow Minecraft through the firewall, we need to go ahead and click ‘Change Settings’.

Windows Firewall Change settings with box

4. Find ‘Minecraft’ and Tick Private and Public

Scroll down until you see ‘Minecraft for Windows’ and ‘Minecraft Launcher’ and ensure both Private and Public are ticked.

Make sure both Private and Public are ticked for both of these

5. Find ‘javaw.exe’ and Tick Private and Public

Scroll down until you see ‘javaw.exe’ and ensure both Private and Public are ticked.

Windows Firewall Java


6. Hit ‘OK’ and Exit

Press the ‘OK’ button and then press the ‘X’ in the top right corner to close ‘Windows Firewall’ Application.

Windows Firewall with a box around ok and an arrow pointing at ok.


7. Relaunch Minecraft

Finally, relaunch Minecraft completely, and you should be all set!

Minecraft Server Hosting

Starts at $1.99

External link icon

Was this article helpful?
Please Share Your Feedback
How Can We Improve This Article?
Table of Contents