[GH-ISSUE #3474] [BUG]: Deployment on my server does not allow access from the server's IP address #2244

Closed
opened 2026-02-22 18:28:49 -05:00 by yindo · 1 comment
Owner

Originally created by @start-life on GitHub (Mar 15, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3474

How are you running AnythingLLM?

Local development

What happened?

Deployment on my server does not allow access from the server's IP address, even though I made a referral with Nginx, there is a problem that it tries to access the localhost. In my opinion, it is trying to access the API at http://localhost:3001 and the Nginx reference is not enough. The question is in which file can this be changed? I tried in frontend/.env.example and it didn't help. These are the errors in my browser.

GET http://localhost:3001/api/setup-complete net::ERR_CONNECTION_REFUSED
keys @ index.js:67
(anonymous) @ index.js:318
(anonymous) @ index.js:318
No @ index.js:40
mi @ index.js:40
(anonymous) @ index.js:40
_ @ index.js:25
V @ index.js:25Understand this errorAI
index.js:67

GET http://localhost:3001/api/system/logo?theme=light net::ERR_CONNECTION_REFUSED

It should be noted that from within the server itself this works as usual. The problem is with access from the server's external IP address.

Are there known steps to reproduce?

No response

Originally created by @start-life on GitHub (Mar 15, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3474 ### How are you running AnythingLLM? Local development ### What happened? Deployment on my server does not allow access from the server's IP address, even though I made a referral with Nginx, there is a problem that it tries to access the localhost. In my opinion, it is trying to access the API at http://localhost:3001 and the Nginx reference is not enough. The question is in which file can this be changed? I tried in frontend/.env.example and it didn't help. These are the errors in my browser. GET http://localhost:3001/api/setup-complete net::ERR_CONNECTION_REFUSED keys @ index.js:67 (anonymous) @ index.js:318 (anonymous) @ index.js:318 No @ index.js:40 mi @ index.js:40 (anonymous) @ index.js:40 _ @ index.js:25 V @ index.js:25Understand this errorAI index.js:67 GET http://localhost:3001/api/system/logo?theme=light net::ERR_CONNECTION_REFUSED It should be noted that from within the server itself this works as usual. The problem is with access from the server's external IP address. ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:28:49 -05:00
yindo closed this issue 2026-02-22 18:28:49 -05:00
Author
Owner

@timothycarambat commented on GitHub (Mar 17, 2025):

Your NGINX config is incorrect, you should be using a proxy_pass to do this
https://github.com/Mintplex-Labs/anything-llm/blob/9d13c9a0fb59cf986e81f855016b6b6a0ea82478/cloud-deployments/aws/cloudformation/aws_https_instructions.md#step-7-create-simple-http-proxy-configuration-for-anythingllm

That is a basic config implementation, but that is likely what is going on since localhost refers to the client machine, not the server. You need to use the server LAN private IP or public IP to access the server remotely. This is not related to AnythingLLM as far as our code goes. Its a deployment/config issue you are running into.

@timothycarambat commented on GitHub (Mar 17, 2025): Your NGINX config is incorrect, you should be using a proxy_pass to do this https://github.com/Mintplex-Labs/anything-llm/blob/9d13c9a0fb59cf986e81f855016b6b6a0ea82478/cloud-deployments/aws/cloudformation/aws_https_instructions.md#step-7-create-simple-http-proxy-configuration-for-anythingllm That is a basic config implementation, but that is likely what is going on since localhost refers to the client machine, not the server. You need to use the server LAN private IP or public IP to access the server remotely. This is not related to AnythingLLM as far as our code goes. Its a deployment/config issue you are running into.
yindo changed title from [BUG]: Deployment on my server does not allow access from the server's IP address to [GH-ISSUE #3474] [BUG]: Deployment on my server does not allow access from the server's IP address 2026-06-05 14:45:24 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2244