When trying to join a friends world, I get a bug saying "Unable to connect to world." This can sometimes be reproduced (although it is random)ย by going into an already created world. leaving, and trying to join a friends world, VIA XBox Live, not realms or LAN. It can sometimes be fixed my restarting Minecraft. (quitting the app, and re-launching it)
Linked issues
Comments

Same man u have a solution or not yet, cause when i enter Ip address and port , I enter and then says unable to connect to worldย
ย
Thank you for your report!
We're actually already tracking this issue at REALMS-2054, so we will resolve and link this ticket 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 โ ๐ฌ Mojang Support โ ๐ง Suggestions โ ๐ Minecraft Wiki