I made sure the javaw.exe and Java(TM) Platform SE Binary are set to private and public on both our computers. We're in the same house, pc's 5 ft apart. Normally my son and I can just join each others worlds via LAN prior to the most recent update. Nothing has changed other than the recent update.
made an account just to post here. my gf loves playing minecraft like nothing else and i just built a pc so weve been doing that a lot. a few days ago it just stopped working and she was really upset, i didnt think any of this would work but removing the firewall on public networks on the hosts computer really did fix the issue, and weve both been very happy,, so thank you!! definitely worth a try!!
It seems that if you use `minecraft_server.1.20.6.jar`, it won’t run with older versions of Java.
```
masuda@luna:~/minecraft$ /usr/bin/java -Xmx1G -jar server.jar --nogui
Error: LinkageError occurred while loading main class net.minecraft.bundler.Main
java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
```
On the server, try using something like `openjdk-21`.
This is probably the right solution, but the steps people have given are either wrong or incomplete. For one thing, there are 8 different instances of "Java(TM) platform SE binary" in the list. All of them have their root file as "javaw.exe".
So, which one is it? And which checkboxes are needed?
The steps to bring up the Defender app on Windows 10 are:
Bring up Control Panel - AS AN ADMINISTRATOR
Select "Security and Maintenance"
Click the drop-down arrow next to Security
Under Network Firewall, click "View in Windows Security"
Near the bottom, click "Allow an app through firewall"
Scroll down to items starting with the letter J.
Click the "Change Settings" button
Enter your Windows administrator account password (even though you brought Control Panel up as an administrator)
Scroll down to items starting with the letter J (again, if necessary)
This is where it gets tricky. It's going to be one of the entries that say "Java(TM) Platform SE binary". But as usual with Oracle products, they don't give it a proper name and they're not all the same file.
What I don't know is WHICH entry to choose, nor do I know which checkboxes to check.But I checked all the boxes for all eight lines (on my system), and it still didn't work.
It seems that if you use `minecraft_server.1.20.6.jar`, it won’t run with older versions of Java.
```
masuda@luna:~/minecraft$ /usr/bin/java -Xmx1G -jar server.jar --nogui
Error: LinkageError occurred while loading main class net.minecraft.bundler.Main
java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
```
On the server, try using something like `openjdk-21`.
```
sudo apt install openjdk-21-jre
```
That's a different error (but just as annoying). This problem started at 1.20.5. The problem you're posting about requires installing the latest JDK (which we all had to do a couple weeks ago).
NOTE: My getsockopt problem exists even when I'm trying to login on the same system that's running the server.
MOJANG: Please get somebody here to give us a fix!
made an account just to post here. my gf loves playing minecraft like nothing else and i just built a pc so weve been doing that a lot. a few days ago it just stopped working and she was really upset, i didnt think any of this would work but removing the firewall on public networks on the hosts computer really did fix the issue, and weve both been very happy,, so thank you!! definitely worth a try!!
Please list the steps you took. Your description is incomplete.
Just had this same issue! Thank god I found this post! Turning off the firewall(windows defender) for public network did the trick. I think it's the hosting computer that you have to turn it off for.
Turning off the firewall on Public networks is courting disaster. Unless you're on a hard-wired (i.e. cabled ONLY network), you're allowing anybody in the neighborhood into your computer.
Summary: Before everything else check if the ip address is correct
I'm failing on the same system that's running the server.
BugTracker is useless (as usual). They claim it's a technical support issue, not a bug. They just close tickets opened to report it. So don't bother trying to get help on BugTracker (bugs.mojang.com).
Guys i found the method,restore to default firewall settings,it will work but after you play another multiplayer game u need to chech the pop up notification of firewall again,but no big deal
After searching the Internet a little bit, I found a solution. Since minecraft switched to java21 (https://www.oracle.com/java/technologies/javase/jdk21-archive-downloads.html) after version 1.20.5, you need to install it for all players and the LAN host. Then, I checked the java "public" in firewall permissions and was able to log in to the server. The host did the same thing.
Try hosting your world using the Essential mod, you will have to friend the other person, I haven't tried it in the new versions though so I don't know it it's going to work
What you need is your 2 pcs or laptops connected to the same router box in your home so you will need 2 ethernet cables one for each pc.
both pc need to have the same version of Minecraft and both need to be playing on java edition NOT windows, I also am unsure if this will work if you have mods downloaded I haven't tested it
1. host pc: open Minecraft
2. host pc : create new world or load an old world, host loads into Minecraft world
3. host pc: click ESC on keyboard and select open to LAN
4. host pc: select Start LAN World
5 host pc: the text (local game hosted on port) with green numbers should show up at the bottom left corner of the screen, you need the green numbers save those! if they disappear before you can write them down click T on your keyboard the numbers should come back up
6. host pc: keep Minecraft open do not close the game and fallow steps in photo 6
NOTE: there are a few IPV4, your looking for the IPv4 that has no letters and should be around 10 numbers long Save those numbers!
7. second pc: open Minecraft and select multiplayer
8. second pc: select Direct Connection
9. second pc: type in IPV4 first. include . periods as they are shown, then end with a : the two dots thing (not ; this one) so it should look something like this 123.456.7.890:
10. second pc: next add the green numbers you got from doing steps 1-5 to the end,
example 123.456.7.890:11123
11. second pc: click Join server
NOTE: I don't know if it made a difference but I fallowed some of the others posts and disabled the firewall on private and public servers on both pcs I was using. hope this helps Jesus loves u
This is actually a catch-all error. Mojang really needs to fix their error codes so one specific error generates one specific and unique error code.
You can get this error many ways.
One is if you are using the wrong internal IP address in the definition of the game-launch entry in the launcher. I was using 192.168.2.38 when it actually should have been 192.168.1.38. This can happen if you changed your network somehow and it changed the IP address range granted by your DHCP server. (These are usually in ranges).
Another way I found is if the external IP address and port isn't allowed to pass through your firewall. Check port forwarding rules in your external firewall.
A third way is if the port forwarding rule points to the wrong server on your internal network. (This is similar to the first paragraph in my list above.)
MOJANG: Please correct the error messages to give unique error codes depending upon which way the error is being generated.
I understand your frustration with the ‘getsockopt’ error in Minecraft. This is a common issue that many players face, especially after certain game updates. We have a comprehensive guide on our website that provides detailed steps on how to fix the ‘getsockopt’ error in Minecraft. It covers everything from adjusting your firewall settings to checking your network connection.
You can visit our website and search for the blog post titled “How to Fix the Getsockopt Error in Minecraft”. This guide has helped many Minecraft players resolve this issue and get back to their gaming sessions. We hope it will be helpful for you too. Happy gaming!
I checked my network, I checked off the boxes in my firewall, I reset my firewall to default, reinstalled minecraft, reinstalled my drivers. Nothing has worked. I'm trying to get into a friends server through Aternos. We tested his IP and the port address. No one else in my group is having problems. Another friend created another server and I got in that one. Nothing is working.
I have no idea... I found on some site I need to allow this exe to make the LAS possible.
I saw that on my computers only public was allow and no private... So, I added the private and it worked.
Ran into the same issue, worked for me
Thanks a bunch!
Any other ideas?
I made sure the javaw.exe and Java(TM) Platform SE Binary are set to private and public on both our computers. We're in the same house, pc's 5 ft apart. Normally my son and I can just join each others worlds via LAN prior to the most recent update. Nothing has changed other than the recent update.
made an account just to post here. my gf loves playing minecraft like nothing else and i just built a pc so weve been doing that a lot. a few days ago it just stopped working and she was really upset, i didnt think any of this would work but removing the firewall on public networks on the hosts computer really did fix the issue, and weve both been very happy,, so thank you!! definitely worth a try!!
Now I have a different problem Java is not showing up on my Windows Defender firewall at all.
It seems that if you use `minecraft_server.1.20.6.jar`, it won’t run with older versions of Java.
```
masuda@luna:~/minecraft$ /usr/bin/java -Xmx1G -jar server.jar --nogui
Error: LinkageError occurred while loading main class net.minecraft.bundler.Main
java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
```
On the server, try using something like `openjdk-21`.
```
sudo apt install openjdk-21-jre
```
This is probably the right solution, but the steps people have given are either wrong or incomplete. For one thing, there are 8 different instances of "Java(TM) platform SE binary" in the list. All of them have their root file as "javaw.exe".
So, which one is it? And which checkboxes are needed?
The steps to bring up the Defender app on Windows 10 are:
This is where it gets tricky. It's going to be one of the entries that say "Java(TM) Platform SE binary". But as usual with Oracle products, they don't give it a proper name and they're not all the same file.
What I don't know is WHICH entry to choose, nor do I know which checkboxes to check.But I checked all the boxes for all eight lines (on my system), and it still didn't work.
So, HOW DO WE FIX THIS?
That's a different error (but just as annoying). This problem started at 1.20.5. The problem you're posting about requires installing the latest JDK (which we all had to do a couple weeks ago).
NOTE: My getsockopt problem exists even when I'm trying to login on the same system that's running the server.
MOJANG: Please get somebody here to give us a fix!
Please list the steps you took. Your description is incomplete.
We need details. WHAT exception?
Turning off the firewall on Public networks is courting disaster. Unless you're on a hard-wired (i.e. cabled ONLY network), you're allowing anybody in the neighborhood into your computer.
I'm failing on the same system that's running the server.
BugTracker is useless (as usual). They claim it's a technical support issue, not a bug. They just close tickets opened to report it. So don't bother trying to get help on BugTracker (bugs.mojang.com).
Guys i found the method,restore to default firewall settings,it will work but after you play another multiplayer game u need to chech the pop up notification of firewall again,but no big deal
Hello all!
After searching the Internet a little bit, I found a solution. Since minecraft switched to java21 (https://www.oracle.com/java/technologies/javase/jdk21-archive-downloads.html) after version 1.20.5, you need to install it for all players and the LAN host. Then, I checked the java "public" in firewall permissions and was able to log in to the server. The host did the same thing.
я русский
Try hosting your world using the Essential mod, you will have to friend the other person, I haven't tried it in the new versions though so I don't know it it's going to work
both pc need to have the same version of Minecraft and both need to be playing on java edition NOT windows, I also am unsure if this will work if you have mods downloaded I haven't tested it
1. host pc: open Minecraft
2. host pc : create new world or load an old world, host loads into Minecraft world
3. host pc: click ESC on keyboard and select open to LAN
4. host pc: select Start LAN World
5 host pc: the text (local game hosted on port) with green numbers should show up at the bottom left corner of the screen, you need the green numbers save those! if they disappear before you can write them down click T on your keyboard the numbers should come back up
part 1/2
Keep in mind this is for Windows OS
screen shot 6 came from this guide: https://apexminecrafthosting.com/how-to-find-minecraft-server-ip/
6. host pc: keep Minecraft open do not close the game and fallow steps in photo 6
NOTE: there are a few IPV4, your looking for the IPv4 that has no letters and should be around 10 numbers long Save those numbers!
7. second pc: open Minecraft and select multiplayer
8. second pc: select Direct Connection
9. second pc: type in IPV4 first. include . periods as they are shown, then end with a : the two dots thing (not ; this one) so it should look something like this 123.456.7.890:
10. second pc: next add the green numbers you got from doing steps 1-5 to the end,
example 123.456.7.890:11123
11. second pc: click Join server
NOTE: I don't know if it made a difference but I fallowed some of the others posts and disabled the firewall on private and public servers on both pcs I was using. hope this helps Jesus loves u
This is actually a catch-all error. Mojang really needs to fix their error codes so one specific error generates one specific and unique error code.
You can get this error many ways.
One is if you are using the wrong internal IP address in the definition of the game-launch entry in the launcher. I was using 192.168.2.38 when it actually should have been 192.168.1.38. This can happen if you changed your network somehow and it changed the IP address range granted by your DHCP server. (These are usually in ranges).
Another way I found is if the external IP address and port isn't allowed to pass through your firewall. Check port forwarding rules in your external firewall.
A third way is if the port forwarding rule points to the wrong server on your internal network. (This is similar to the first paragraph in my list above.)
MOJANG: Please correct the error messages to give unique error codes depending upon which way the error is being generated.
I am having this issue with 1.20.6 as well, 1.20.5 worked perfectly yesterday.
Same issue but with 1.20.6. My 1.20.5 worked fine, but now I get this error with 1.20.6. Firewall is not the issue I checked both computers.
I understand your frustration with the ‘getsockopt’ error in Minecraft. This is a common issue that many players face, especially after certain game updates. We have a comprehensive guide on our website that provides detailed steps on how to fix the ‘getsockopt’ error in Minecraft. It covers everything from adjusting your firewall settings to checking your network connection.
You can visit our website and search for the blog post titled “How to Fix the Getsockopt Error in Minecraft”. This guide has helped many Minecraft players resolve this issue and get back to their gaming sessions. We hope it will be helpful for you too. Happy gaming!
Worst clickbait ever
How an article created today with even less information than in this thread could have helped countless people 
Yall send yelp, I did everything in this thread.
I checked my network, I checked off the boxes in my firewall, I reset my firewall to default, reinstalled minecraft, reinstalled my drivers. Nothing has worked. I'm trying to get into a friends server through Aternos. We tested his IP and the port address. No one else in my group is having problems. Another friend created another server and I got in that one. Nothing is working.