The error "Unable to connect to world" appears when trying to connect with my friend through Xbox Live.
The game does connect in the following cases:
Android > Android
Windows 10 > Android
My friend and I have the same version of the game, we can only play together by using a third party program called "Hamachi" to simulate a LAN network.
Windows 10 X Windows 10
Android X Windows10
Related issues
Comments

Thank you for your report!
We're actually already tracking this issue in MCPE-36190, so I've resolved and linked 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 – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki