To connect to another player's server, log in to Minecraft, select Multiplayer from the main menu.
Click the Add Server button.
And enter the IP or web address of that server.