local-deep-researcher icon indicating copy to clipboard operation
local-deep-researcher copied to clipboard

Access from other devices on the LAN

Open Xinze919 opened this issue 8 months ago • 3 comments

langgraph dev --host 0.0.0.0 after startup, http://ip:2024/info can be accessed, but can not access https://smith.langchain.com/studio/thread?baseUrl=http%3A%2F%2Fip%3A2024, and http://ip:2024/assistants/search can not access. I access https://smith.langchain.com/studio/thread?baseUrl=http%3A%2F%2Fip%3A2024, that shows Failed to load assistants Please verify if the API server is running or accessible from the browser and TypeError: Failed to fetch. I want access from other devices on the LAN. How to solve the problem?

Xinze919 avatar Mar 20 '25 08:03 Xinze919

index-CTfx18qu.js:80 Mixed Content: The page at 'https://smith.langchain.com/studio/thread?baseUrl=http%3A%2F%2Fip%3A2024' was loaded over HTTPS, but requested an insecure resource 'http://ip:2024/info'. This request has been blocked; the content must be served over HTTPS. index-CTfx18qu.js:80 Mixed Content: The page at 'https://smith.langchain.com/studio/thread?baseUrl=http%3A%2F%2Fip%3A2024' was loaded over HTTPS, but requested an insecure resource 'http://ip:2024/assistants/search'. This request has been blocked; the content must be served over HTTPS.

Xinze919 avatar Mar 20 '25 09:03 Xinze919

Hmm, may be a Mixed Content security issue. When you access the HTTPS Studio UI (smith.langchain.com) and it tries to connect to your HTTP LangGraph server, modern browsers block these connections.

Try:

1/ Use a secure reverse proxy:

  • Set up Nginx or Caddy as a reverse proxy with a self-signed certificate
  • Configure it to forward requests to your LangGraph server

2/ Use SSH tunneling with port forwarding:

ssh -L 2024:localhost:2024 user@your-server-ip

3/ Use a tool like ngrok to create a secure tunnel: Then use the HTTPS URL provided by ngrok as your baseUrl.

4/ For testing only: Temporarily disable mixed content blocking in your browser (not recommended for regular use).

rlancemartin avatar Mar 20 '25 18:03 rlancemartin

I want to run this project locally (in a non-networked environment). What should I do? Maybe, just change the front end or other. Thank you very much for your answer.

Xinze919 avatar Mar 24 '25 08:03 Xinze919