How can you open a server on Minecraft PE?

I was bored this morning, so I asked my sister to join me on Minecraft PE. She did, and it worked. Then she had the idea of asking some of our friends to join us. I was thrilled with the idea, but how do I get it to work?
As far as I know, you can only join single player worlds when you're all on the same network. Right? So if that's true, how do I make a PE server?
We want to have our friends join us, it sounds fun. When we're in the same house it's kinda boring because we can chat in real.
Best Answer
You can do some advanced coding or.... Download the app Multiplayer for Minecraft PE (it's on the App Store, and it's really cheap!)
Pictures about "How can you open a server on Minecraft PE?"



Quick Answer about "How can you open a server on Minecraft PE?"
Can you play server on Minecraft PE?
Joining a server on Minecraft for mobile (formerly Minecraft Pocket Edition), used to be a complicated process. Now you can easily add or join a server by signing in with your Microsoft or Xbox Live account. You can also create your own server with a subscription to Minecraft Realms.How do you create a server on Minecraft PE 2020?
To find a server, try MinecraftPocket-Servers or Minecraft Pocket Edition Servers and browse for a world that you'd like to join. The server details will contain an address and a port number, which you'll need to fill in within Minecraft: Pocket Edition on your Lumia. To do that, press: Play.How To Make Servers For MCPE 1.18! - Minecraft Bedrock Edition
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Karolina Grabowska, Athena, Andrea Piacquadio, William Fortunato