obsidian/wiki/claude-code/lmstudio-serve-on-network.md
2026-04-30 14:42:43 +01:00

2.5 KiB

title aliases tags sources created updated
LM Studio — Serve on Local Network
lmstudio-network
lmstudio-lan-server
lmstudio
networking
api-server
local-llm
lan
raw/Serve on Local Network.md
2026-04-30 2026-04-30

LM Studio — Serve on Local Network

Enabling Serve on Local Network makes the LM Studio API server accessible to other devices on the same LAN — not just localhost.

How It Works

  • By default the server binds to 127.0.0.1 (localhost only)
  • With the option enabled it binds to your machine's local network IP (e.g. 192.168.x.x)
  • The API access URL shown in LM Studio updates to reflect the new binding
  • All existing API endpoints stay the same — only the host changes

Use Cases

Scenario Why useful
Thin-client devices (laptop, tablet, phone) Offload inference to a powerful desktop on the same network
Shared team access Multiple people hit one LM Studio instance
IoT / edge devices Raspberry Pi or similar calls the API over LAN
Local service mesh Other self-hosted services (Home Assistant, scripts) consume the LLM

Setup Steps

  1. Open LM Studio → Local Server tab
  2. Toggle Serve on Local Network → ON
  3. Note the updated API access URL displayed (e.g. http://192.168.1.x:1234)
  4. On client devices, point base_url to that address instead of http://localhost:1234

Key Takeaways

Sources

  • raw/Serve on Local Network.md — clipped from lmstudio.ai/docs/developer/core/server/serve-on-network