I can connect manually by typing the IP and port but the auto detect feature is broken.
I suspect it might be related to the Java 16 upgrade, which I'm really curious to see the reasons for but I cannot find that anywhere?
Related issues
duplicates
Comments


Thank you, Tim! Your comment helped and more importantly - it worked.
We have two PCs in the house, playing on LAN together. We had to do this on both of them and then it worked.
Thank you for your report!
We're tracking this issue in MC-98598, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Hi, I'm having trouble with the same issue but am unable to locate the javaw.exe file. Can anyone help?

Nevemind, I just realised you said download it, apologies!

Still having trouble locating it!

Depends on where you put it when you install it. Here's some instructions or search for "how to install openjdk 16" https://java.tutorials24x7.com/blog/how-to-install-openjdk-16-on-windows

i installed openjdk 16 but in my command prompt it doesn't show that its recognizing openjdk, I followed every step
This issue is a cause with the client not being able to detect the server. The server appears to be broadcasting itself fine as the workaround only need be applied to clients connecting from other PCs. LAN connections worked fine in 1.16.5, but stopped working with 1.17.0. Running windows 10 home.
The workaround I've found for this issue is to install OpenJDK 16 and set the client to use javaw.exe:
open minecraft lanucher
select Installations tab
edit Latest Release
expand More Options
under Java Executable, click browse
select javaw.exe, which is found at C:\java\jdk-16.0.1\bin\javaw.exe in my case
save and launch
select multiplayer
lan server now shows in list