Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Change a Valheim server password by editing the server’s launch command, replacing the value after -password, saving the file, and restarting the server. On Windows, edit start_headless_server.bat; on Linux, edit start_server.sh. Use at least five characters, and keep the password different from both the public server name and the world name.

What you need before changing the password

You need access to the machine or hosting control panel that starts the Valheim Dedicated Server. Changing the password is a configuration edit; it does not require new hardware, a new world, or a separate password utility.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Windows self-hosted server: access to the folder containing start_headless_server.bat and a text editor such as Notepad.
  • Linux self-hosted server: shell or file access to start_server.sh.
  • Panel-managed or containerized server: administrator access to the provider’s startup settings or the container configuration.
  • A replacement password: choose five or more characters, using letters and numbers for the greatest compatibility.

Stop the server before editing its launch file if it is currently running. Otherwise, a restart may use the old process or overwrite your change, depending on how the server was started.

Change the password on a Windows Valheim server

1. Open the launch file

Find start_headless_server.bat in the Valheim Dedicated Server installation directory. Right-click the file, choose Open with, and select Notepad. Do not double-click it to edit: double-clicking launches the server instead.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.

2. Find the password option

Look for the command line that starts the server. The official setup documentation identifies the launch-options line as the one beginning with start valheim_server. Within that line, locate the argument in this form:

-password "Secret"

The text between the quotation marks is the current password. Replace only that value. For example:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
-password "NewVikingPass7"

Keep the quotation marks if the existing command uses them. Do not add spaces inside the password unless you have confirmed that your particular script handles them correctly; simple letters and numbers avoid most parsing problems.

3. Save the file without changing its type

Choose File > Save in Notepad. Confirm that the filename remains start_headless_server.bat, not start_headless_server.bat.txt. If Windows is hiding file extensions, enable View > Show > File name extensions in File Explorer so you can verify the name.

4. Restart the server

Close any existing server console, then start the batch file directly or launch the server through Steam, as described by the official guide. Wait for the server to finish starting before testing the new password. Everyone who joins must use the new value; the old password stops working as soon as the new process loads the edited command.

Change the password on a Linux Valheim server

1. Open start_server.sh

Go to the directory where the dedicated server startup script is stored and open start_server.sh in your preferred editor. For example, a text-only session might use:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
nano start_server.sh

The exact location and editor command depend on your installation. Make a backup copy before editing if you expect to change several options:

cp start_server.sh start_server.sh.backup

2. Replace the value after -password

Find the launch line and change the quoted value after -password. A complete example reported by a third-party guide looks like this:

./valheim_server.x86_64 -name "NorseRealm" -port 2456 -world "Expedition1" -password "SecretViking" -public 1 -crossplay

In that example, changing "SecretViking" to "NewVikingPass7" changes the join password while leaving the server name, port, world, visibility, and cross-play settings unchanged. Treat the example as a pattern and verify the executable name and other options against your own script.

3. Save and exit

In Nano, press Ctrl+O, press Enter to confirm the filename, then press Ctrl+X. Other editors use different save commands, but the important result is that the existing script is updated rather than saved under a second filename.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

4. Restart and test

Stop the running server cleanly, start the script again, and wait for the startup messages to finish. Connect from a client using the new password. If the process exits immediately, follow the validation checks in the troubleshooting section before reverting the file.

Choose a password Valheim will accept

Password validation is stricter than simply entering any text after -password. The following rules are reported by third-party Valheim guides and the Nimdy troubleshooting wiki; launch-script behavior can change with game updates, so confirm the syntax in your installed script if an otherwise valid value fails.

Rank #3
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
Rule What to do Why it matters
At least five characters Use five or more characters; eight to 16 is a practical range for a memorable private password. A value shorter than five characters is reported to prevent the server from working.
Do not match the public server name Keep the password different from the text supplied to -name. Several guides report that an identical value is rejected.
Do not include the server name Avoid using the server name, or a recognizable portion of it, inside the password. One reported example, server name “Shattered Vikings” with password “vikings,” refuses to start.
Keep it separate from the world name Use a password that does not match or contain the value supplied to -world. Sources disagree on whether the server name or world name is checked; avoiding both is the safest interpretation.
Prefer letters and numbers Start with an alphanumeric password if troubleshooting is needed. The Nimdy wiki reports that special characters can cause problems in some setups.

These restrictions concern the server’s launch configuration, not your Steam account password. Changing one does not change the other.

Example of a safe launch configuration

The following Linux-style command illustrates how the related options fit together:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
./valheim_server.x86_64 -name "NorseRealm" -port 2456 -world "Expedition1" -password "FjordGate42" -public 1 -crossplay
  • -name "NorseRealm" is the name players see for the server.
  • -port 2456 is the server port in this example; changing a password does not require changing it.
  • -world "Expedition1" selects the saved world.
  • -password "FjordGate42" supplies the join password.
  • -public 1 makes the server visible in the community browser.
  • -crossplay enables the cross-play option when supported by the installation.

Do not copy the entire line blindly into a different installation. Executable paths, options, and script names may differ after Valheim updates or between distributions. Change the existing -password value in your own launch file and preserve the options you already use.

Server panels and Docker installations

If a hosting company supplies a web panel, the visible startup script may not be the source of truth. Look for a field labeled Password, Server password, Startup parameters, or an environment-variable section. Save the setting and use the panel’s Restart control.

Container images commonly receive launch values through environment variables rather than a file you edit inside the running container. The exact variable name and whether a container must be re-created are image-specific and are not established here. Follow the image maintainer’s documentation or the panel’s instructions instead of guessing a variable name. If a normal restart restores the previous value, inspect the container’s environment or re-create it only when the image documentation explicitly requires that step.

Do not edit a generated configuration file if the panel warns that it will be overwritten. Change the setting in the panel or deployment definition that generates it, then restart or redeploy from that source.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

Visibility, public mode, and empty passwords

The -public 0 option hides a server from the community browser. A third-party guide reports that an empty password is accepted only when -public 0 is used. An empty password is a poor choice for any server reachable from the internet: anyone who can discover its address may be able to join.

For a private server, use an actual password even when the server is hidden. Hiding the listing reduces casual discovery but is not a replacement for access control.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot a Valheim server that will not start after the change

Check the length first

Count the characters in the value after -password. If it has fewer than five, replace it with a longer value and restart. This is the first check because a too-short password is specifically reported to stop the server from working.

Remove server-name and world-name overlap

Compare the password with both the -name and -world values. Remove exact matches and recognizable fragments, then try a neutral alphanumeric value. Sources differ on whether the world name is checked in addition to the server name, so testing against both avoids that ambiguity.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Temporarily remove special characters

Replace punctuation, quotation marks, shell symbols, and other non-alphanumeric characters with letters and numbers. A character can be interpreted by the batch file, shell, panel, or container before Valheim receives it. Once the server starts reliably, you can test a more complex value if your setup documents support for it.

Verify the edit is on the active launch line

Some scripts contain commented examples or more than one command. Confirm that the running command is the line beginning with start valheim_server on Windows, or the executable invocation in start_server.sh on Linux. Editing an unused example line has no effect.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

Check quoting and file names

  • Keep matching quotation marks around the password when the original line uses them.
  • Make sure the Windows file still ends in .bat, not .bat.txt.
  • On Linux, confirm you saved the same start_server.sh that your service or launch command actually runs.
  • For a panel or container, confirm that the setting was saved in the active server instance rather than a template or stopped instance.

Read the startup output

Start the server from a console when possible and watch for the first error before the process exits. A clean start followed by an inability to join usually points to a client using the old password or to a different server instance, whereas an immediate exit points first to an invalid password value, naming conflict, quoting problem, or wrong configuration source.

Confirm you restarted the correct instance

It is easy to change one installation while a service manager, Steam shortcut, panel, or container starts another. Stop all duplicate Valheim server processes, identify the active installation path, edit its launch configuration, and start only that instance. Players should then test by entering the new password manually rather than relying on a saved connection entry.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When the password still does not work for players

The server starts, but the old password is accepted nowhere

That behavior is expected after a successful restart: the new launch value is authoritative. Send players the new password exactly, including capitalization. Remove old saved server entries or cached connection details if a client keeps submitting the previous value.

The server is visible but rejects the new password

Check that the server listing belongs to the instance you edited. Duplicate servers can have the same display name. Verify the port, address, and running process, then restart the instance whose launch file contains the new value.

The password contains spaces or punctuation

Return temporarily to a password made only from letters and numbers, enclosed in the same quotes as the original argument. If that works, the earlier value was likely being altered by the shell, batch parser, panel, or container environment rather than by the player’s client.

Operational checklist

  1. Stop the active Valheim server.
  2. Open start_headless_server.bat on Windows or start_server.sh on Linux.
  3. Find the active launch command and its -password argument.
  4. Enter a password of at least five characters.
  5. Keep it different from, and free of recognizable parts of, both the server name and world name.
  6. Use letters and numbers first if compatibility is uncertain.
  7. Save the original filename and preserve the command’s quotation marks.
  8. Restart the correct server instance.
  9. Test from a client using the new password.
  10. If startup fails, check length, name overlap, special characters, and whether a panel or container is overwriting the setting.

How often can you change it?

You can repeat the same edit whenever access needs to be rotated—for example, when a former player should no longer join. Each change takes effect after the server loads the updated launch configuration. Existing worlds and saves are selected by the -world option; changing the password does not, by itself, select a different world.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Version and documentation caveat

Valheim updates and third-party hosting images can change script names, accepted characters, and panel labels. The official setup guidance referenced here is reported as roughly 916 days old at the time of the latest check and has no verified publication date in the available material. If your installed files use different names or syntax, treat those files and the current official documentation as authoritative, while retaining the validation rules above as troubleshooting checks rather than guaranteed behavior for every future release.

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.