Valheim – 1-Step Connect to Server

Valheim – 1-Step Connect to Server 2 - steamlists.com
Valheim – 1-Step Connect to Server 2 - steamlists.com
Commands, URLs, and scripts to connect to a server in one step.

 

Basics

Replace 127.0.0.1 with the IP address.
Replace 2456 with the port, if it’s different.
89297. is the magic number for Valheim on Steam. If you see 892970 in commands, that’s why it’s there.

HOSTNAMES DO NOT WORK IN ONE-LINERS, but a multi-line script can fetch the IP for a hostname, and send it to a command. I provide one. Hopefully IronGate adds direct support someday!

PASSWORDS DO NOT WORK on the command line. There’s a +password option to specify one, but it doesn’t do anything. The in-game UI will still prompt for a password.

Command Line

steam.exe -applaunch 892970 +connect 127.0.0.1:2456
Or using the full path to the steam.exe:

C:\Games\Steam\steam.exe -applaunch 892970 +connect 127.0.0.1:2456

Shortcut

Create a shortcut to Steam.exe in the normal way, and then edit to use the Command Line above:

Valheim - 1-Step Connect to Server

URL (You Can Paste In Chat)

steam://rungameid/892970//+connect 127.0.0.1:2456/
Or, using the %20 code for a space, to make it a single word:

steam://rungameid/892970//+connect%20127.0.0.1:2456/

Hostname Script

PowerShell script to resolve the hostname, and put it on a command line.

Name it whatever you like, something like ValheimConnect.ps1

# Config $Hostname = http://"host123.hostname.net" $Port = 2456 $SteamPath = "C:\Games\Steam\steam.exe" # Implementation $SteamAppId = 892970 $steam_args = @("-applaunch", $SteamAppID) $IP = [http://System.Net.Dns]::GetHostAddresses($Hostname) $IPWithPort = $IP.IPAddressToString + ":" + $Port $steam_args += @("+connect", $IPWithPort) Start-Process ` -FilePath $SteamPath ` -ArgumentList $steam_args
By default, PowerShell scripts need to be right-clicked and “Run with PowerShell”. Double-clicking will open them as a text file, not run them.

Feedback

Leave comments if something doesn’t work, or could work better.

Written by Morsk

Hope you enjoy the Guide about Valheim – 1-Step Connect to Server, if you think we should add extra information or forget something, please let us know via comment below, and we will do our best to fix or update as soon as possible!


Be the first to comment

Leave a Reply

Your email address will not be published.


*