I've seen a lot of connection bugs, but none of the ones I've looked at are like the one I have encountered. So I create a world on my windows laptop, everything goes good. My brother can join from his laptop on our LAN, and we encounter no connection problems. Then my friend tries to join (from his own house) and says he gets stuck on the "Connecting to multiplayer game" stage. I look at the player list and his name doesn't even show up which means something is not letting him connect. I exit the world, create a second (with the same settings and seed) and he is able to connect (after a long time due to his iPad being old). He can see my worlds (and we're signed into Xbox Live), but he just can't join them until they are recreated for some reason. I don't think he has this issue when he connects to featured servers though.
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.
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! Please report any issues in Discord or Reddit