When I try to connect to a server it always is stuck at "Connecting to the server..." and never gives an error message. On the server menu screen, it always says "pinging" and never gives the red arrow as I would expect. I can connect to servers in 1.16.5. This is only an issue in 1.17 and 1.17.1. Therefore, I believe this is a bug in 1.17 and not an issue with my setup.
I've tried:
Multiple wifis (and making them public/private).
Firewall on/off.
Allowing inbound connections.
Reinstalling minecraft.
Uninstalling all antiviruses.
Manually installing java 16 and specifying Minecraft to run in java 16.
Using a vpn (and without).
Attached:
Image showing issue on 1.17.1
Image showing connection screen on 1.17.1
Image showing lack of issue on 1.16.5
Linked issues
Attachments
Comments

Thank you for your report!
We're tracking this issue in MC-227913, 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
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Duplicate of MC-227913.