Steam のカスタムプロトコルを利用して、指定したゲームサーバーへ接続を試みるための静的 HTML ページです。ブラウザでこのページを開くと、steam://connect/<server_address> へ遷移し、Steam クライアント側でサーバー接続を開始します。
- 言語: HTML, CSS, JavaScript
- ライブラリ/フレームワーク: なし
- データベース: なし
- その他: Steam クライアント, カスタム URI スキーム
- Steam クライアントがインストールされていること
- カスタムプロトコルの呼び出しをブラウザが許可していること
- 接続先のサーバーアドレスを把握していること
git clone https://github.com/username/project.git
cd projectindex.htmlをブラウザで開きます。steam://connect/your_server_addressのyour_server_addressを実際の接続先に置き換えます。- ページ読み込み時に Steam が起動しない場合は、画面内の「再読み込み」を実行します。
start index.html- Steam の接続プロトコルを使ってサーバー接続を起動します。
- 接続に失敗した場合の再読み込みリンクを表示します。
- 最小構成の静的ページとして、そのまま配布できます。
接続先は index.html の以下の行で変更します。
document.location.href = "steam://connect/your_server_address";your_server_address を、実際のサーバーアドレスに置き換えてください。必要に応じて、ポート番号を含めた形式で指定します。
Unlicense license
This is a static HTML page that uses Steam's custom protocol to attempt a connection to a specified game server. When the page is opened in a browser, it redirects to steam://connect/<server_address> and starts the server connection through the Steam client.
- Language: HTML, CSS, JavaScript
- Library / Framework: None
- Database: None
- Other: Steam client, custom URI scheme
- Steam client is installed
- The browser allows custom protocol handling
- You know the target server address
git clone https://github.com/username/project.git
cd project- Open
index.htmlin a browser. - Replace
your_server_addressinsteam://connect/your_server_addresswith the actual server address. - If Steam does not launch automatically, use the reload link shown on the page.
start index.html- Starts a Steam server connection through the connection protocol.
- Shows a reload link when the connection fails.
- Can be distributed as a minimal static page.
The connection target is configured in the following line in index.html:
document.location.href = "steam://connect/your_server_address";Replace your_server_address with the actual server address. Include a port number if required.
Unlicense license