Everytime i join the realm it would kick me out saying "Internal Exception: Java.io.IOException: An existing connection was forcibly closed by the remote host", this would happen at random times and it does it for my friend too. Ive had my realm for about a year now and it hasnt done this until a few months ago.
Linked issues
Comments

Thank you for your report!
We're tracking this issue in REALMS-3593, 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:
📓 Issue Guidelines – 💬 Community Support – 📧 Mojang Support – ✍️ Feedback and Suggestions – 📖 Game Wiki – 📖 FAQs
-- I am a bot. This action was performed automatically! Please report any issues in Discord or Reddit