If LM Studio’s local server will not start because port 1234 is already in use, something else on your PC is listening on that port, very often another LM Studio server instance or a second tool that picked the same number. Find the process that owns port 1234, then either stop it or start LM Studio on another port with lms server start --port. Port Detective shows the owning process for any port on Windows in one search, with its name, PID and executable path, so you can tell which one it is before you stop anything.
This guide covers Windows 10 and 11. The LM Studio commands come from LM Studio’s own documentation for lms server start and lms server status, checked on 28 October 2026.
See which process owns port 1234 in one search, on your PC.
Get it fromMicrosoft
Why does LM Studio use port 1234?
LM Studio can run a local server that serves your loaded models over an HTTP API, so editors, agents and scripts on the same PC can call them. The examples in LM Studio’s documentation show the server running on port 1234: starting it prints “Success! Server is now running on port 1234,” and lms server status reports “The server is running on port 1234.”
Two details from the docs explain most conflicts:
- The port is sticky. The
--portflag onlms server startis optional, and if you do not provide it, LM Studio uses the last used port. If you once picked a port that another app now uses, LM Studio will keep trying it. - There is more than one way to start the server. You can toggle it in the LM Studio app’s Developer view, or start it from a terminal with
lms server start, which wakes the LM Studio service. If one is already running, a second attempt on the same port has nowhere to go.
What is using port 1234 right now?
Start by asking LM Studio itself:
lms server status
If it says the server is already running on port 1234, the “conflict” is LM Studio’s own server, and you may only need to use it, or stop it with lms server stop and start it again with the settings you want. For scripts, lms server status --json --quiet returns machine-readable output such as "running": true and "port": 1234.
If LM Studio says it is not running but the port is still taken, find the owner with Windows tools. In Command Prompt:
netstat -ano | findstr :1234
Look for a line in the LISTENING state with a local address ending in :1234. The last column is the process ID. Then look up the PID:
tasklist /FI "PID eq 12345"
In PowerShell, one line does both:
Get-NetTCPConnection -LocalPort 1234 -State Listen | ForEach-Object { Get-Process -Id $_.OwningProcess }
Our longer guide to finding the process using a port on Windows explains the netstat output column by column.
How does Port Detective find the owner faster?
Port Detective’s free viewer identifies listening ports and their owning process, including the name, PID and executable path. Search for 1234 to inspect the listener. Pro adds the broader connection view and active monitoring features described below.
Port Detective Pro, the complete edition, adds what you need when the answer is not obvious:
| Task | Port Detective (free) | Port Detective Pro |
|---|---|---|
| Find the process on a port by number | Yes, including name, PID and executable path | Yes |
| Stop an identified process | Includes 5 one-time guarded kills | Unlimited guarded kills, with process-token checks to reduce PID-reuse risk |
| See protected OS processes plainly | No | Yes, the UI says when a process is protected |
| Copy the row as a netstat, taskkill or PowerShell command | Not listed for free | Yes |
| Watch 1234 in the background | No | Port Guard checks watched ports every 250 milliseconds and notifies you when something else grabs one |
| Map Docker host ports to the container | Not listed for free | Yes, when Docker is running |
The executable path is the quickest way to tell apart two processes with similar names, for example an LM Studio instance from an older install and the one you meant to run.
Pin port 1234 and know the moment another app takes it.
Get it fromMicrosoft
How do you fix the conflict?
Pick the fix that matches what you found.
| What owns port 1234 | Fix |
|---|---|
| LM Studio’s own server, already running | Use it, or run lms server stop, then start it again |
| A second LM Studio instance or a leftover process | Close that instance, or stop the process after checking its path |
| A different app that also defaults to 1234 | Move one of them. For LM Studio, lms server start --port 1235 |
| A process you do not recognize | Check its executable path before stopping it. If in doubt, move LM Studio instead |
To move LM Studio, start the server on a free port:
lms server start --port 1235
Because LM Studio remembers the last used port, later starts without --port will keep using the new one. Update any tool that calls the server, such as an editor extension or an agent framework, so its base URL points at the new port, for example http://localhost:1235/v1 if the tool uses the OpenAI-compatible path.
Should you bind LM Studio to 0.0.0.0 to fix connection problems?
Usually not. The --bind flag sets the network address. LM Studio’s docs say 127.0.0.1 is the default and serves localhost only, while 0.0.0.0 listens on all IPv4 interfaces and makes the server available on your local network. The docs warn that any bind other than 127.0.0.1 exposes the server beyond your machine, and recommend authentication if you do it.
Changing the bind address is not a reliable way to resolve a port conflict and can expose the service to other devices. Prefer keeping the loopback binding and identifying the listener or choosing an unused port. If a tool on the same PC still cannot connect, see localhost refused to connect on Windows.
How do you stop it happening again?
- Pick one way to start the server. Either the app’s Developer toggle or
lms server start, not both by habit. - Give each local AI tool its own port. Write them down. If you also run Ollama, our guide to Ollama port 11434 covers its default.
- Watch the port. In Port Detective Pro, pin 1234 and turn on Port Guard. You get a native Windows notification when anything else grabs it, and a rule can shut down the intruder and relaunch the process that is supposed to own the port.
- Keep a note. Port Detective Pro lets you leave a searchable note on a port, such as “:1234 = LM Studio server,” that you can back up and restore across machines.
Frequently asked questions
Is 1234 LM Studio’s only possible port?
No. It is the port shown in LM Studio’s examples, and you can choose another with --port. LM Studio then reuses the last port you picked.
Can I kill the process with Task Manager?
You can end a task you recognize in Task Manager, but Task Manager does not show which process owns a port. Find the PID first with netstat or Port Detective.
Why does lms server status say not running when the port is busy?
Because something other than LM Studio’s server is listening on 1234. Find that process by port number.
Does Port Detective send my data anywhere?
Core features make no external network calls. The free edition and Pro both run on your PC.
Try Port Detective
Port Detective is free in the Microsoft Store for live socket tracking and port lookup. Port Detective Pro is a one-time purchase with a free trial in the Microsoft Store and unlocks one-click kill, Port Guard and exports. Each listing shows the current price and system requirements. More detail is on the Port Detective product page.
Find, stop or guard whatever is sitting on your local AI ports.
Get it fromMicrosoft
Last updated 28 October 2026. Published by Automata Labs, a software company in Canada.