From 994c7229a7aeb213b299be436a500b999f491756 Mon Sep 17 00:00:00 2001 From: Foyzul Karim Date: Fri, 6 Feb 2026 23:15:56 +1100 Subject: [PATCH] docs(cli): add `--bind` flag documentation for server start command Add documentation for the --bind flag which allows the LM Studio server to accept connections from the local network. - Added --bind flag to the parameters list - Included example usage section "Serve on local network" - Added security warning about network exposure This flag was previously available but undocumented in the CLI docs, though it exists as "Serve on Local Network" option in the GUI. --- 3_cli/1_serve/server-start.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/3_cli/1_serve/server-start.md b/3_cli/1_serve/server-start.md index b82aaf3..9d32197 100644 --- a/3_cli/1_serve/server-start.md +++ b/3_cli/1_serve/server-start.md @@ -17,6 +17,10 @@ The `lms server start` command launches the LM Studio local server, allowing you type: "flag" optional: true description: "Enable CORS support for web application development. When not set, CORS is disabled" +- name: "--bind" + type: "string" + optional: true + description: "Bind address for the server. Use '0.0.0.0' to accept connections from the network. Defaults to localhost only" ``` ## Start the server @@ -45,6 +49,15 @@ lms server start --cors Note that enabling CORS may expose your server to security risks, so use it only when necessary. +### Serve on local network + +To make the server accessible from other devices on your local network: +```shell +lms server start --bind 0.0.0.0 +``` + +**Warning:** This will accept connections from any device on your network. Only use this if you understand the security implications. + ### Check the server status See [`lms server status`](/docs/cli/serve/server-status) for more information on checking the status of the server.