You should now be able to connect from Terraria with the IP address.Your new Terraria server won’t be active until you edit some options in serverconfig.txt.
In the Game Management console, click on Configuration Files and then the Text Editor option for serverconfig.txt. The file explains what each of the options does and gives them in option=value format.
By default, each line has a # in front of it, which marks it as a comment to be ignored by the server. To change a setting, delete the # in front of it an edit the value as needed.
The only one you must change to start your server is autocreate:
#Creates a new world if none is found. World size is specified by: 1(small), 2(medium), and 3(large).
Delete the # in front of autocreate and set the number to reflect the size world you want
The other settings you’ll most likely want to change (but don’t have to) are worldname, difficulty, maxplayers, password, motd and lang.
Worldpath, banlist, upnp and priority should generally be left alone. These are more relevant to players hosting servers on their own machines.
When you have edited the file to your liking, click Save, then go back to the main page of the Game Management console and click Restart to bring your server up. You should now be able to connect from Terraria with the IP address.
Your new Terraria server won’t be active until you edit some options in serverconfig.txt.