Connect to a Terraria Server
Step 1: Click Multiplayer.
Step 2: Click Join via IP.
Step 3: Select/Create a character.
Step 4: Paste the server address without the port and click Accept.
Step 5: Enter the server port and click Accept
After clicking Accept, you will be prompted for a password if the server has one.