He was using mobile data while playing Minecraft(PE) and whenever he tries to join/connect with my world, it says “unable to connect.” When he connects to the server he can enter, but he can’t join to his friend’s world like mines.
He tried using his mobile data as his hotspot and played Minecraft on another device. I tried entering his world, but it says “unable to connect world.” Then when he tried entering my world, it displays as “unable to connect world.”
Related issues
Comments

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