WinError 10013 when running langgraph dev

I’m trying start a local server as the official doc, and after I running langgraph dev, an error appeared like:

(.venv) PS D:\Code\langchain\agent\app> langgraph dev
INFO:langgraph_api.cli:

        Welcome to

╦  ┌─┐┌┐┌┌─┐╔═╗┬─┐┌─┐┌─┐┬ ┬
║  ├─┤││││ ┬║ ╦├┬┘├─┤├─┘├─┤
╩═╝┴ ┴┘└┘└─┘╚═╝┴└─┴ ┴┴  ┴ ┴

- 🚀 API: http://127.0.0.1:2024
- 🎨 Studio UI: https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024
- 📚 API Docs: http://127.0.0.1:2024/docs

This in-memory server is designed for development and testing.
For production use, please use LangSmith Deployment.


2025-11-19T07:41:38.946778Z [error    ] [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试。 [uvicorn.error] api_variant=local_dev langgraph_api_version=0.5.16 thread_name=MainThread

how can I solve that?

I’ve tried using netstat -ano | findstr 2024 to check the port and it’s free

Hi! You may have a security configuration on your machine from running an application on that port.

thank u, seems that 2024 is the reserved port for windows, which is causing the problem:

(.venv) PS D:\\Code\\langchain> netsh interface ipv4 show excludedportrange tcp
Protocol tcp Port Exclusion Ranges
Start Port    End Port
---
  1757        1856
  1957        2056
  5357        5357
 14358       14457
 50000       50059     *
* * Administered port exclusions.

I can solve the problem with --port xxxx to specify some port else