Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

How can I create a desktop shortcut that will automatically connect to a game server on launch? I have got this as a start up command "steam://rungameid/240 -connect", but it doesn't connect just start the game... Is it possible? Thanks!

share|improve this question

1 Answer 1

up vote 5 down vote accepted

You appear to be mixing command line options with Steam Browser protocol URLs.

The correct syntax for a Steam browser protocol link that auto-connects is:


You'll note there's no game, as Steam is (usually) smart enough to determine what game to launch based on what game the server is running.

Alternatively, you could use a shortcut to the game's executable with the appropriate command line options, or set the command line options from the Steam Library properties for the game. In this case, you'd want to use:

+connect <ip>:<port> 

as part of the arguments to the game.

share|improve this answer
Thanks! The first command line worked perfectly! –  ZyteX Apr 18 '12 at 21:05
@ZyteX, no problem. Thanks for verifying I had it right :) –  agent86 Apr 18 '12 at 21:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.