Talk:Server

Max players in a server
Isn't the max players something like 6, and the article has been written to follow "local style="font-family: Matisse ITC; font-size;12px;">Ju ze  22:53, 25 May 2011 (UTC)

List of commands
Are there any commands like kick, ban, listusers, etc? --112.210.112.233 23:10, 31 May 2011 (UTC)

Troubleshooting link
Can there be a trouble shooting link on this page for people having problems with hosting servers?

Possible bug
There is a bug where when the sever command "exit" is executed the server restarts.


 * This isn't a bug. I think you started the server using start-server.bat, which includes an instruction to restart the server in case it crashes. --114.76.17.147 01:33, 19 December 2011 (UTC)

Logging server chat
Is there a way to log the chat (to a text file or something) that goes on in your dedicated server?


 * Yes. you can edit the .bat and add something to the end of the line containing 'TerrariaServer.exe -config ...'.
 * if you add ' > log.txt' the console will write to the specified file instead of the console window.
 * HOWEVER this will cause you to see nothing on the console window anymore. instead you have to open the log file everytime you want to check what's going on.
 * 82.192.251.143 13:21, 18 July 2015 (UTC)


 * On Linux you can use 'TerrariaServer -config ... | tee logfile.txt', this will output to the console as well as to the log file.
 * 82.7.191.68 17:17, 12 August 2020 (UTC)

downloading
how for to downloading into single player map? work i have done must be saved prior to destruction

Linux file paths
The Linux Notes section should be updated or the config file section should be updated to let people know that on a Linux server the config file uses local file name conventions (not Windows ones). 82.7.191.68 17:21, 12 August 2020 (UTC)

Fixed download link
It would be very nice if you provided a download link at a fixed location for the latest server. In this way I can automate the download, unziping, and installation of a new server when the old one stops working. I do this for my kids and lately with bugs, the server has changed a few times in a short amount of time. Giving them a Linux script that automates the process would be nicer than having to wait for "dad to get home".


 * Actually, a kind-of fixed location is the original source of those download links – https://terraria.org. It would be more sensible to fetch the link to the latest server from there, given it should always be up-to-date there (whereas here on the wiki, it will inevitably take some time until someone adds it). On the website, there is a "PC Dedicated Server" link in the footer. You could use something like the following to extract the download path:
 * This is just to give you a general idea. Depending on your system, you might need to use sed or something else if the grep -P option is not available.
 * --Rye Greenwood (talk) 11:58, 2 April 2021 (UTC)
 * --Rye Greenwood (talk) 11:58, 2 April 2021 (UTC)


 * Maybe that worked a year & half ago but the Terraria website now appears to be a JS React ""app"" so the sed technique won't work as well if at all.
 * However, the basic pattern of the URL is simple enough:
 * where  corresponds to the version number with the dots removed, e.g. 1.4.4 becomes 144, and 1.4.4.2 becomes 1442.
 * So maybe you could try incrementing the last digit of the current version, issuing a HEAD htto request to see if the file exists, and then downloading it if so?
 * Anyway, just an idea. --99.146.242.37 08:00, 25 October 2022 (UTC)
 * Anyway, just an idea. --99.146.242.37 08:00, 25 October 2022 (UTC)