Dedicated Server

How to Setup up a Dedicated Server

This guide will tell you how to setup a dedicated server that can be connected to by other people. This is for Windows 7 users.

The first step is to find out your IP address. Click start and type in CMD in the "Search programs and files" this will bring up the command promp. Type in ipconfig and hit enter to bring up your network information. Find the network adapter you are using and write down the IPv4 address as well as the default gateway IP.

Once you have your IP and default gateway, open up Internet Explorer or Firefox and enter the default gateway IP in the address bar. This should bring up a login screen for your router so enter admin for the username and admin for the password if you have never changed the settings for the router. If you have then enter the username/password. If you do not know then check your routers user manual or go to the router manufacturs website and look up the manual for your router. Once you are in your router interface click on the Application and Gaming tab to access the port forwarding options. Name a row Terraria and put "7777 to 7777" for the port range then enter your computers IPv4 address which should be "192.168.1.XXX" then click enable. Click "save changes."

Now your router should be ready to forward connections to your computer but your computer may reject them via its firewall so you have to add an exclusion. I don't use the defualt firewall for windows but in order to change windows firewall you need to go to "Start -> Control Panel -> System and Security -> Windows Firewall -> Advanced Settings." Click on "Inbound Rules" then scroll down to Terraria and there should be four entries with the top and the bottom ones greyed out and the word "Domain" in the profile. Right click the top one and click "Properties" then "Protocols and Ports" then click on the drop box that says "All Ports" next to the "Local Ports" option and select "Specific Ports" then enter "7777" in the text box that opens up under the drop down box. Do this for the bottom entry for TCP then right click both and click "Enable Rule" finally exit out. This should allow people to connect to your new server.

If you are using Kaspersky then go to "'Settings" -> "Firewall" -> "Settings" -> "Packet Rules" click on Add then click the protocol box and select "TCP'''" in the drop box next to it. The drop down box under should be set to "'Inbound" then put "7777'''" in the local port box and make sure to select allow from the top drop box. Make another exception but put "UDP" in the protocol box.

Now you should be set. Just go to your Terraria folder in your Steam folder and click on "TerrariaServer." Now load up any world you want for MP, set the max players, set the port to 7777 then make a password if you want. You should be set for people to conenct to your server. Make sure to check the page of server commands so you can moderate your brand new server. It should also be noted that the server doesn't take much to run.