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

Set a Valheim dedicated-server password in its startup script with -password "YourPassword". The value must contain at least five characters and must not appear in the server’s public name. Save the edited script, stop any running server process, start it again, and wait for the server-connected message before testing a join. The password is only one part of a successful connection: the server’s port, firewall, and crossplay mode also matter.

What the password setting actually controls

Valheim reads the password when the dedicated server starts. It is not normally changed from an in-game menu while the server is running. The launch argument is:

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

-password "Secret"

Iron Gate’s dedicated-server documentation lists -password alongside -name, -port, and -world. The argument belongs in the startup command used to launch the dedicated server, not in a client-side configuration or a world name.

Argument Purpose Example
-password Sets the password players must enter when joining. -password "Secret"
-name Sets the public listing name shown to players. -name "My server"
-world Selects the world to load, or the world to create if it does not yet exist. -world "Dedicated"
-port Sets the base network port. Valheim also uses that port plus one. -port 2456

Changing -name changes how the server is identified in the list; changing -world changes the world associated with the process. Neither option changes the password itself.

#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: 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.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.

Valheim’s password rules

Minimum length

Use five or more characters. A shorter value will not satisfy the current setup guidance, even if the script otherwise looks correct.

Keep it out of the server name

The password cannot appear in the value supplied to -name. Choose a public name that identifies the community or world without reusing any part of the password. This is both a configuration requirement and a security practice: the server name is visible to anyone who can see the listing.

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

Quotes and exact text

Put the value in quotes when the script syntax uses a quoted argument, as in -password "YourPassword". Use the same value when testing the join. Avoid accidentally adding a space, changing capitalization, or copying typographic quotation marks into a command that expects ordinary script quotes. If the password contains characters that your shell treats specially, keep the surrounding quotes and check the resulting command carefully.

Keep the value private

The password is stored in the startup script as plain command-line text. Do not publish that script, include the value in a screenshot, or paste it into public documentation. Share it only through a private channel with the people who should join.

Set a password on a Windows dedicated server

1. Open the dedicated-server tool

Install or open Valheim Dedicated Server from Steam’s Tools library. The tool supplies the launch script that starts the headless server.

2. Make a working copy of the startup script

Locate start_headless_server.bat and make a copy before editing it. Use the copy as your administrator-maintained script. Keeping custom settings in a copy reduces the chance that a later dedicated-server update will overwrite them.

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

3. Edit the password argument

Open the copied batch file in a text editor. Find the existing -password argument and replace only its value. For example:

-password "YourPassword"

Use at least five characters and make sure none of those characters appear in the server’s -name value. If the script already contains other options, leave them in place unless you intentionally need to change them.

4. Check the related identity settings

Confirm that the command still has the intended -name and -world values. A typical set of arguments might look like this:

-name "My server" -port 2456 -world "Dedicated" -password "YourPassword"

The exact executable portion of the batch file can differ by installation; the important part is that the password argument is on the command used to start the dedicated server.

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

5. Save, restart, and wait for readiness

Save the copied script, stop any currently running dedicated-server window or process, and start the copied script. Do not test immediately while the process is still initializing. Wait until the console reports that the server is connected or otherwise ready, then attempt a client join with the new value.

Set a password on Linux

1. Identify the launch script

Use the corresponding .sh startup script supplied with the Valheim Dedicated Server installation. Keep a backup or administrator-owned copy before making changes so an update does not replace your settings.

Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【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.

2. Replace the password value

Open the copy in a text editor and edit the existing argument:

-password "YourPassword"

Preserve the script’s existing option order and executable command unless you have a separate reason to change them. Check the minimum length and the restriction on reusing text from -name.

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

3. Save and restart the process

Stop the running server, save the file, and launch the copied shell script again. A running process keeps the old startup value; editing the file alone does not change an already-started server. Wait for the server-connected message before asking a player to test.

4. Protect the script

Because the password is visible in the file, restrict access to the account or administrators who operate the server. Do not upload the script to a public repository or paste it into a support forum without removing the password first.

How to change an existing Valheim server password

  1. Tell connected players that the server will be restarted.
  2. Stop the dedicated-server process cleanly.
  3. Open the administrator’s copied .bat or .sh startup script.
  4. Replace the old -password value with a new value that follows the length and server-name rules.
  5. Save the file without changing the argument name or removing its quotes.
  6. Start the server from that same copied script.
  7. Wait for the server-connected message, then give the new password to authorized players privately.

Players who still have the old value saved in a password field must enter the new one. If a join attempt succeeds before the restart, it was connecting to the still-running process and does not prove that the edited script has been loaded.

Why a Valheim password fails

The value is too short

Check the character count first. The current setup guidance requires at least five characters. Replace a shorter value and restart the server.

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.
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.

The password appears in -name

Inspect both arguments side by side. Remove the overlap from the public name, save the script, and restart. Do not rely on changing only the listing display in a server browser; the text in the launch command is what matters.

The edited script was not the script being launched

It is common to create a copy and then continue launching the original file, or to edit one installation while Steam starts another. Start the server explicitly from the administrator’s copied script and verify that the console output belongs to that process.

The server was not restarted

Password options are read at startup. Stop the old process completely, launch the edited file, and wait for readiness. Closing an editor or saving the file while the server is running is not enough.

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

Quotation or character mismatch

Compare the value in the script with the value entered by the player, including capitalization and spaces. Use ordinary script quotation marks and avoid copying a trailing space. If the value includes shell-sensitive characters, keep it enclosed in quotes and test with a simple temporary value that meets the rules.

The player is reaching a different server

If one player can join with the expected value while another receives a password error, confirm the server name, world, address, and port with both players. A similarly named listing or an old process can make a correct password appear to fail.

Networking is being mistaken for an authentication error

Once the password rules and restart have been checked, verify the network path. The default dedicated-server ports are 2456 and 2457. Firewall rules, router forwarding, or an incorrect port can prevent a client from reaching the intended server at all.

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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Ports, firewall, and crossplay

Default port pair

Valheim uses the port specified by -port and the next port as well. With the default setting, that pair is 2456–2457. If you choose another base port, account for both the selected port and the selected port plus one in firewall and router rules.

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

When router forwarding matters

For a server reachable directly from outside a home network, router and firewall configuration may be required. The exact steps depend on the router, operating system, and network layout, so first confirm that the dedicated-server process is listening on the intended pair and that the operating system firewall allows it.

What -crossplay changes

Iron Gate’s guide explains that the -crossplay backend does not require router port forwarding. That changes the connectivity setup, not the password rules: the startup script still needs a valid -password value, and the server still needs to be restarted after edits.

Using a private, unlisted server

The official options include -public 0, which makes the server invisible in the public list and allows joining through the game’s Join IP button. This controls discoverability; it does not replace the password or alter the minimum-length requirement.

Understand the other startup options before troubleshooting

Setting What players notice What changing it does not do
-name Changes the server name shown in the list. It does not set or update the password.
-world Chooses the loaded world, or names a new world to create. It does not identify a password or migrate one between worlds.
-port Determines the base network port used by the process. It does not bypass firewall or router requirements.
-public 0 Hides the server from the public list; players can use Join IP. It does not disable password protection.
-crossplay Uses the crossplay backend. It does not permit an invalid password.

Save a record of the intended values for all of these options, but keep the password itself in a private password manager or restricted administrator note rather than in a public setup document.

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.

Self-hosting versus renting a managed server

The password syntax is the same idea whether the process runs on your own computer or on a rented host: edit the startup configuration, restart the server, and test a client join. The operational trade-offs are different.

Decision factor Home machine Rented managed host
Cost pattern Uses hardware and electricity you already provide; no provider price is established here. Uses a recurring hosting charge; the amount depends on the provider and plan.
Availability The host computer and its network must stay online for the world to be reachable. The provider keeps the assigned machine online according to its service terms.
Administration You maintain Windows or Linux, the script, updates, firewall, and backups. The provider may supply a control panel and support, but the exact features vary.
Networking You may need router forwarding and local firewall changes unless using the crossplay backend. The host normally handles datacenter networking; confirm its port and crossplay support.
Backups You control where world files are copied and how often they are retained. Backup frequency and restoration controls depend on the host’s service.
Location and latency Players connect to your home network location. You can often select a geographic region, subject to the host’s locations.
Capacity Limited by your hardware, bandwidth, and other workloads. Limited by the plan’s allocated resources and the provider’s policies.
Support You diagnose script, operating-system, and network problems yourself. Support scope depends on the provider; verify it before subscribing.

Do not choose a host solely because it advertises a control panel. Confirm that you can edit the password argument, restart the process, select the required world, use the desired port or crossplay mode, and recover world backups.

Operational checklist for a reliable password change

  • Use an administrator-owned copy of the startup script.
  • Set a value of at least five characters.
  • Ensure the value does not appear in -name.
  • Keep the value out of screenshots, public repositories, and shared documentation.
  • Confirm that -world still points to the intended world.
  • Confirm the base port and its companion port, 2456–2457 by default.
  • Decide whether -crossplay or -public 0 is appropriate for the way players will connect.
  • Stop the old process before starting the edited script.
  • Wait for the server-connected message before testing.
  • If joining fails, check the password rule first, then the script being launched, then ports and firewall configuration.

Permissions and world files are separate from the password

Iron Gate’s documentation also describes default save locations and separate adminlist.txt, bannedlist.txt, and permittedlist.txt files for permissions. Those files are maintained independently of the startup password. Changing a password does not replace a ban, grant administrator access, or select a different world; manage each function in its own configuration.

Quick diagnostic sequence

  1. Read the running command and confirm that it contains the intended -password value.
  2. Check that the value meets the minimum length and is absent from -name.
  3. Verify that you edited the copied script that is actually being launched.
  4. Stop and restart the process, then wait for the server-connected message.
  5. Have the player enter the new value exactly, without an extra space.
  6. Confirm the player is selecting the intended server and world.
  7. Check ports 2456 and 2457, or the chosen base port and its next port, in the firewall and router.
  8. If -crossplay is enabled, use the crossplay connection method and do not assume ordinary router forwarding is required.

This order prevents a network problem from being misdiagnosed as a password problem and prevents an old server process from hiding a successful configuration change.

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

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.