No worries, we'd be happy to help! I see that you're playing on PC. Can you check your Firewall/Antivirus to see if the permissions were given properly to Minecraft? Also, are you connected using Wi-Fi or Hardwire? ^BT
1
Every instance of java is allowed and I'm connected over ethernet directly but this is occurring in singleplayer and multiplayer
1
Replying to @ShaggyWasTaken
Thanks for checking that out for me! If you could, can you make a ticket with our Technical team so they can have a look? To keep your information secure, please complete our request form at aka.ms/Minecraft-Support so we can quickly and safely assist with your question! ^BT

Sep 26, 2022 · 8:11 PM UTC