Cross-platform Xbox and PC "Unable To connect"
I recently got Minecraft and wanted to play multiplayer, but every time my friend and I on Xbox tried to connect to each other's it showed unable to connect. Checking fixes online and reaching to Minecraft support yielded no solution so I believe it is a bug. This is the first I've bought Minecraft and played, and the Xbox player I tried playing with, has already been able to connect with other people even with a PS4 player. It firstly shows connecting after which it ends up just saying "unable to connect".
Related issues
Comments

Thank you for your report!
We're tracking this issue in MCPE-36190, 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.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki