To play Homeworld 2 online, you'll typically host or join a game through the in-game multiplayer lobby, or connect directly to a friend's IP address. Make sure your ports are open and any firewall allows the connection, since that's the most common thing that blocks online play.
On a separate note, if you're stuck trying to rescue Captain Soban from the command station and the marine frigates keep taking the bridge, focus on clearing the frigates first before moving in.