1. Give your friend your ip (use
http://whatismyip.com for example) if you're making the server (or vice versa)
2. Open console (press `, near the 1)
3. Type /connect ip, (for example, if your friend ip is 75.533.453.53, then type /connect 75.533.453.53)
4. Enjoy the game.