Overview
Commands and URLs to connect to a server in one step.
Basics
Replace 127.0.0.1 with the IP address or hostname.
Replace 2456 with the port, if it’s different.
892970 is the magic number for Valheim on Steam. If you see 892970 in commands, that’s why it’s there.
HOSTNAMES WORK ANYWHERE AN IP ADDRESS WORKS.
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
Or using the full path to the steam.exe:
URL (You Can Paste In Chat)
Or using the %20 code for a space, to make it a single word:
There’s a second type of URL starting with steam://connect , that doesn’t use command-line arguments, but it isn’t working for Valheim. (It gets Valheim to launch, but the connection always fails.) If it starts working, I’ll add examples.
Shortcut
Create a shortcut to Steam.exe in the normal way, and then edit to use the Command Line above:
Steam’s Server List
I don’t like this method, as it requires many clicks through Steam’s UI. But if you’re using Steam’s UI to organize servers for games, you might like it:
[link]Feedback
Leave comments if something doesn’t work, or could work better.