Multiplayer question and confusion

The quick way to connect to a server is to open the console (~ key) and type “open 127.0.0.1” or whatever the IP address of the server is. You can do something similar in code with commands like:

World->ServerTravel(MapName);

or

ClientTravel(MapName, ETravelType::TRAVEL_Absolute);