There are 2 options:
1) LAN: You can also play together with friends in the same location or room, if you are all sharing the same modem via Ethernet or via WiFi. Log into Single Player and the click the “esc” button out to the ‘Game Menu’ screen and click ‘Open To LAN’ and then ‘Start LAN World’. Others can then join you if they are playing the same version of Minecraft. They go to ‘Multiplayer’ and the game then searches for local games, they should see a pop up to join your game.

2) Minecraft Realms: is a paid subscription service where you can host a server for friends simply, without having to set up I.P addresses, ports and LAN networks.