The file you edit depends on the server software. For a vanilla Terraria server, add password=yourpassword to the active serverconfig.txt. For TShock, set ServerPassword in tshock/config.json. Save the change, then fully stop and start the server; Terraria reads these settings at startup, not while the process is running.
Godlike.Host offers hosted Terraria servers with its own game panel, SFTP access and free DDoS protection, if you would rather not host it yourself.
Choose the instructions for your server type
Terraria has two common dedicated-server setups, and they do not use the same configuration file. Editing the wrong file can appear to do nothing even when the password text is correct.
As an Amazon Associate I earn from qualifying purchases.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errors| Server type | Configuration file or setting | Password entry | Required after saving |
|---|---|---|---|
| Vanilla Terraria server | The serverconfig.txt file passed to the server |
password=yourpassword |
Stop and start the server |
| TShock | tshock/config.json |
"ServerPassword": "yourpassword" |
Stop and start the server |
| Hosted control panel | The panel’s Terraria or TShock settings page | A Password field, often under “Tshock Settings” | Save, then restart from the panel |
| Docker or Cloudron-style deployment | Host-specific environment settings | Some images document TERRARIA_PASSWORD |
Apply the variable and recreate or restart the container |
A blank value means that the server is open. In TShock, an empty ServerPassword disables password protection; in vanilla, omitting the password line or leaving it empty has the same practical result. A password only protects the server that loads the setting, so confirm that friends are joining the same address and port you changed.
Set a password on a vanilla Terraria server
Vanilla uses a plain-text configuration file rather than TShock’s JSON file. The exact location depends on how the server was launched. The active file is the one named in the server’s configuration argument or the one your hosting panel identifies as the server configuration.
#1 Best Overall
- BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
- EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
- COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
- LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
- WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
1. Stop the server and make a backup
Stop the Terraria server cleanly before editing. Make a copy of serverconfig.txt so you can restore the previous settings if a typo prevents the server from starting. Editing while the process is running can be overwritten when the server shuts down.
2. Open the active serverconfig.txt
Use a plain-text editor. If you maintain several worlds or server folders, do not assume the first serverconfig.txt you find is active. Check the launch command or panel configuration for the file actually being loaded.
Recommended Free Tools
3. Add or uncomment the password line
Find a line beginning with password=. Some distributed examples show it commented out. Remove the comment marker, if present, and replace the example value:
password=yourpassword
If no password line exists, add it on its own line. Use the same spelling and capitalization when you later connect. Do not put quotation marks around the value unless your particular server wrapper explicitly requires them; the standard example is a key, an equals sign and the password.
4. Save without changing the file format
Keep the file as plain text and preserve the other settings. Avoid adding spaces before the key or after the password. A trailing space can become part of the value and make a correctly typed password appear to fail.
Rank #2
- WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
- AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
- PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
- ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
- COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
5. Start the server and test a new connection
Start the server again after saving. Password settings are read during startup, so simply reconnecting to a process that was already running will not load the change. Have a player disconnect completely, then reconnect and enter the password when prompted.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →The Terraria Wiki’s server rewrite draft shows the commented password= style used in vanilla configuration examples: Terraria Wiki server configuration draft. A practical configuration reference with the same setting is also available from XGamingServer’s Terraria server-config guide.
Set a password on a TShock server
TShock stores its settings as JSON. On the first successful start, it creates a tshock directory and its config.json file. If you have moved the server directory or use a host panel, the panel may expose the same setting without showing the file directly.
1. Shut down TShock and back up the JSON file
Stop the server before changing the file and copy tshock/config.json. A JSON syntax error can stop TShock from loading its configuration, so a backup gives you a quick recovery path.
2. Edit ServerPassword
Open the file in a text editor and locate the ServerPassword property. Set the value between the existing quotation marks:
Rank #3
- Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
- Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
- Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
- ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
- Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
"ServerPassword": "yourpassword"
Keep the property name’s capitalization, the quotation marks and the comma placement used by the surrounding JSON. If the property already has an empty value, replace only the text between the quotes. An empty value, "ServerPassword": "", leaves the server without a password.
3. Validate the JSON before starting
Do not add comments, smart quotation marks or an extra comma at the end of the object. If your editor has a JSON validation feature, use it. Otherwise, compare the edited line with the original structure before saving.
4. Restart and verify
Start TShock again after saving. TShock reads config.json at startup. The documented setting is listed in TShock’s configuration settings reference, and a step-by-step password example appears in Kinetic Hosting’s TShock password guide.
Test from a client that is not already authenticated. A player who stayed connected through a restart may not provide a useful test of whether new connections are being challenged.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteUse a hosted server panel
Many game hosts provide a form instead of direct file access. The labels vary, but TShock installations commonly expose a page called Tshock Settings. Open that page, search for Password, enter the value, save, and use the panel’s restart control.
Rank #4
- Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
- Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
- 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
- Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
- USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
- Stop the server if the panel does not automatically do so.
- Open the Terraria or TShock configuration area.
- Search the settings page for
Passwordrather than editing an unrelated account or FTP password. - Enter the server password and save the form.
- Restart the server, then test from a fresh client connection.
Some panels also provide a Startup or command-line field. A startup value can take precedence over the generated config.json, so inspect both places if the password in the file is ignored. If the panel recreates configuration files during deployment, make the change in the panel’s persistent setting rather than editing a temporary file. The panel’s documentation should identify which value wins when both are present.
If you need a vanilla-panel walkthrough, Skynode’s vanilla password instructions illustrate the usual configuration workflow. The relevant controls and names can differ by host and by whether the instance runs vanilla Terraria or TShock.
Docker and Cloudron deployments
Container images frequently translate environment variables into game configuration. A Cloudron forum discussion for a TShock deployment mentions TERRARIA_PASSWORD as an environment variable: Cloudron’s TShock Terraria discussion.
That variable is not a universal Terraria feature. It works only when the image or hosting integration implements it. Before using it, check the documentation for your exact image. Set the variable in the deployment’s environment section, apply or redeploy the container as required by the host, and restart the game process. Editing a file inside a running container may be lost when the container is replaced.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Why the password is not working
The server never asks for a password
- Wrong server type: You edited
config.jsonon a vanilla server, orserverconfig.txton TShock. Use the file that matches the process you actually run. - Wrong configuration file: The launch command or panel may point to a different directory. Find the active configuration path rather than editing a similarly named copy.
- The server was not restarted: Stop and start the process after saving. A reconnect alone does not reload the setting.
- The value is blank: Check for
password=with nothing after the equals sign, or"ServerPassword": ""in TShock. - A panel override is active: Review Startup fields and panel settings. A generated value may replace the file each time the server starts.
- You connected to another instance: Confirm the address and port, especially when a host runs multiple worlds or test servers.
The password is rejected even though it looks correct
- Retype it carefully, including capitalization. Treat spaces at the beginning or end as mistakes unless your host explicitly documents them as part of the value.
- Check whether your password manager inserted a hidden newline or copied surrounding quotation marks.
- Verify that the panel did not save a different value than the file you inspected.
- Make sure every player is using the newly chosen value; a previous password is not accepted after a successful restart.
TShock refuses to start after the edit
Restore the backup config.json, start TShock, and then reapply only the password change. The usual causes are a missing quotation mark, an extra comma, a smart quote inserted by a rich-text editor, or editing a JSON line in a way that breaks the surrounding object. Use a plain-text or JSON-aware editor.
Best Value
- Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
- Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
- Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
- Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
- Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
Vanilla starts but ignores the line
Confirm that the line is not still commented, that it is spelled password=, and that you edited the file named by the server’s startup configuration. If a hosting panel generates the file, set the value through the panel and restart instead of repeatedly changing a generated copy.
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Password changes, access and maintenance
Changing an existing password
Replace the old value in the same setting, save it, and restart. Tell players the new value through a private channel. Players already connected may remain in the session until they disconnect, so schedule the restart when you can briefly interrupt play.
Removing password protection
For vanilla, remove the password line or leave its value empty. For TShock, set "ServerPassword": "". Save and restart, then test from a fresh connection. A blank value is an open server, not a password that players can skip.
Choosing and handling the password
- Use a value that is not the server name, world name or administrator username.
- Share it only with the people who should join.
- Keep a private record of which server the password belongs to; do not post it in a public server listing.
- Change it when someone who should no longer have access still knows it, and restart immediately after the change.
- Use ordinary characters that your panel and configuration format can store reliably. If a symbol causes parsing or input problems, choose a different strong value rather than weakening the server’s configuration.
A server password is an admission check, not an administrator permission system. TShock’s separate permissions and groups still determine what an authenticated player can do; configuring those controls is a different task from setting the join password.
A quick verification checklist
- Identify whether the process is vanilla Terraria or TShock.
- Identify the exact active configuration file or panel setting.
- Back up the current configuration.
- Set the vanilla
password=line or TShockServerPasswordvalue. - Check for blank values, comments, malformed JSON and stray spaces.
- Save the file or panel form.
- Stop and start the server; do not rely on a live reload.
- Connect using the correct address and port from a fresh client session.
- If it fails, check panel Startup overrides and confirm that no second server is running at the address.
Vanilla versus TShock: which procedure applies?
| Question | Vanilla | TShock |
|---|---|---|
| Where is the password stored? | serverconfig.txt |
tshock/config.json |
| What do you edit? | A plain-text password= entry |
The JSON ServerPassword property |
| What means “no password”? | Missing or empty password= |
"ServerPassword": "" |
| When does the change apply? | At server startup | At TShock startup |
| What is the most common mistake? | Editing an inactive or still-commented line | Breaking JSON or having a panel override the file |
Once the correct setting is saved and the server has been restarted, new Terraria connections should be challenged for the password. If they are not, return to the active-file and override checks rather than changing unrelated network or world settings.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




