From 1.3.0.1, players also have the option to connect via Steam multiplayer. For more info, see the Guide:Setting up Steam Multiplayer. Please note that the requirements for running your own Terraria server include needing 512 MB RAM for a small game world with a few players and no mods. For larger worlds, 1 or 2 GB RAM (10 players or more) is required. If more than 50 players are expected, then 4 GB or more RAM is recommended[1].
This is the simplest way of playing multiplayer, and works well for in-home LAN or short online co-op games. Start Terraria, and in the main menu, choose "Multiplayer" then "Host&Play". Select a world to play in (or create a new one) then enter a password (or leave blank if you would prefer no password).
First, try setting up a server without a configuration file. To do this, search for the folder where Terraria is installed, find TerrariaServer.exe and then run it. A window will open and show the server control interface. This is where you can enter commands or view information. When it starts, it should ask you to choose a world, listing the worlds currently available on your computer. The window also gives the option to create or delete worlds at startup. When making a new world, follow the instructions in the window to change certain aspects of the world generation.
Then save the text file (.txt) as a batch file (.bat). You will have to place the batch file in the Terraria folder to make it work and the configuration file must be in the same folder as well. Otherwise, if you type in the full path for the "TerrariaServer.exe" and the it will work anywhere and act as a shortcut. Example for full path:
Almost all of the setup on Linux and macOS is done in the terminal. If you are inexperienced with the command line, you may be understandably intimidated or worried you will break something. Just take it slow and type in commands exactly as they are written here. You are encouraged to research each command so you know exactly what it will do (eg man ip or chmod --help). If you need help learning basic terminal commands, consider this guide by HowToGeek.
On Linux and macOS, the binary is found in $STEAM_ROOTDIR/steam/steamapps/common/Terraria. You can also download the dedicated server files directly from terraria.org by clicking the "Dedicated Server" link at the bottom of the page.
Running the script TerrariaServer will start the correct version of the server for your system. Make sure the script and program files have execute permissions by using the command chmod u+x TerrariaServer*. If you do not see this script then double check that you are using the latest version of the server.
Like with other game servers, it is generally recommended that you create a user (with home directory) dedicated to running game servers. This ensures that servers don't have permissions to alter files they shouldn't be.
The server will fail to start if $TERM is not set to xterm. If this is the problem the server will generate a file called "client-crashlog.txt" which will contain the error "System.Exception: Magic number is wrong: 542" If this is the case, simply run the command "export TERM=xterm" and start the server again.
To run a server with a pre-made configuration file you must search for your Terraria installation folder, then run "TerrariaServer -config ", where is the configuration file. Follow these steps to create a shell script to automatically run the server with a configuration file.
The configuration file options and syntax is the same regardless of OS.There is an example configuration file in the Terraria folder. It looks like this if you open it in a text editor like Notepad or Notepad++.If you don't see it, you can copy this text into a new file.
For other computers on your local network (connected directly to your router), type in the 'IPv4' address of the computer you're running the server on (see LAN). Each device connected to your network has their own IP address assigned by your router. The IPv4 address can change for each device from time to time if your router uses dynamic IP addressing (most routers us dynamic IP addressing by default). Dynamic means that the IP address can change.
For friends connecting "over the internet", they'll need to enter your external IP (meaning your router's IP), but this won't work until you set up the aforementioned port forwarding on your router (See Port Forwarding).
This is common because of a typo. Check everything again (especially if you are using a configuration file(s)), and make sure that everything is typed correctly. If it's still not working properly, check the forums to see if anyone else has the same issue that you have. As a last resort, try reinstalling the game.
If you close the server without issuing a save/exit command via the console (or if you use host and play), there's a chance that the world may not have saved the last few minutes of changes.Moving gear between chests and immediately closing the server without explicitly specifying the save/exit command may actually cause those items to disappear.
In the past week I install a Terraria 1.3.5.3 server into an Ubuntu v18.04 OS, for playing online with friends. This server should be powered on 24/7, without any GUI, only been accessed by SSH on internal LAN.
My friends ask me if there is a way for them to control the server, e.g. send a message, via internal in-game chat, so I thought use a special character ($) in front of the desired command ('$say something' or '$save', for instance) and a python program, that read the terminal output via pipe, interpreter the command and send it back with a bash command.
Looking in the bash script I could understand what is going on when I send a command... Basically it use the command "stuff", from the screen program, to send characters to the terraria screen session:
"However, using Python as a wrapper for many system commands is not really a good idea. At the very least, you should be breaking up your commands into separate Popens, so that non-zero exits can be handled adequately. In reality, this script seems like it'd be much better suited as a shell script.".
Now I can send commands, like 'noon' or 'dawn' so I can change the in-game time, save world and backup it with samba server before boss fights, do another stuff if I have some time XD, and have the terminal showing what is going on with the server.
I have the docker-compose.yml file saved in /home/terraria/config, which is also where the worldfile is stored. After checking logs, it seems the container is constantly restarting due to not finding the world file:
There are two methods you can use to download NOOBS, a torrent or a ZIP file. A torrent is usually faster, but requires you to install a third-party client program, such as qBitorrent. Use the ZIP option for an easy download!
If you are having trouble getting the SD Formatting Tool to work, or have an SDXC card (64GB or larger), check out this support article! SDXC cards cannot be formatted with the tool above, and you will need to download a separate program (some options are described in the article). I used MiniTool Partition Wizard Free Edition to format my 64GB Samsung SDXC card as FAT32, and then proceeded to the next step. Everything worked as intended!
Mono is an open source implementation of Microsoft's .NET Framework (a programming interface for Windows applications) which is used to support our server application. To install/update Mono on the Rasbian OS, we will use the terminal, or the command line interface. Open a terminal by clicking on the terminal icon in the upper left hand corner of the desktop and then copy/type the following commands:
TShock is a Terarria server that offers several enhanced management features not present in the default server. Before downloading TShock, you may find it useful to start the GUI, which can be invoked by typing startx into the terminal.
Using your favorite internet browser (there's a ton for the Pi, but one comes preinstalled), download the "Latest Release" of TShock by visiting this page, and then extract the ZIP file. Remember where you extracted the download to, we'll need it in the next step!
Despite having a lot of functionality, TShock is very easy to use, so don't worry! As you learn more about TShock, you can add more functionality to your server! To learn more about TShock, check out the wiki here.
If your friends are not connected to the same local network, things are a bit more complicated, but don't worry! Here is what you need to do to get your friends collected, and in the game!
If your friends are having issues connecting to your server, you may need to port forward your router, or add a rule (exception) to your router's firewall. Configuring these settings is different for every router, so you will need to do some research to see what you need to do! To begin, find the model number of your router (look around the router for a sticker, or other ID), and Google it with the terms "port forwarding" or "firewall".
Hello, for the past year or so I've been trying to port forward the port 25565 to host a dedicated Minecraft server for me and my friends. I was always able to join with my local ipv4 address but my friends couldn't join with my public IP. I never got it to work and gave up after following all the steps I could find in forums with people having the same problem as I was. Recently I've tried to host a dedicated Terraria server instead (port 7777), but same problem there, the port just does not want to open.
> Does the IP address of the WAN/Internet interface of your router
> match what you're using as your public IP address from the outside
> world? ADVANCED > ADVANCED Home : Internet Port : Internet IP Address