Select "Host Game" on the main screen

Select Mod

Select the server type "Local Only" or "Public," then generate the world.

Press "Shift+~" on the game's main screen to open the console.

Use the following command to connect directly to the server's IP address: c_connect("host IP")
