Question: how do you play minecraft online with a friend?
Answer: You can either download the server file needed to set up your own server from Minecraft.net or connect to another person's server. To connect to another player's server, log into Minecraft, select Multiplayer from the main menu, click the Add Server button, and enter the IP or web address of that server.