You need a person to be on the same wifi or If u jailbreak it which is not recommended then you could get things like u can play with people anywhere. If you wait for the next update you can play online without a jailbreak or anything
You can play the game on minecraft pocket edition Wi-Fi without a local player. However, that will happen on a local Wi-Fi connection or within the same Wi-Fi network. If you are using a phone you will have to root it.