I try to join my Minecraft real (I am the host of this Realm) and I keep joining for a few seconds and immediately get kicked and comes up with a message like java.net.socketexception connection reset. I've tried many things to fix this and can not figure it out.
Linked issues
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.
That ticket has already been resolved as invalid. Please take a look at the parent ticket (MC-227913) and see if an explanation is provided there in the description of the ticket or in the comments for why this issue is invalid.
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.