choephix / auto-gpt-webui

MIT License
118 stars 38 forks source link

It keeps showing "Connecting to server..." with no response. #6

Open miaowmint opened 1 year ago

miaowmint commented 1 year ago

I have run npm install and npm run setup-auto-gpt, And npm start has been successful. image However, when I access "ip:7070", it keeps showing "Connecting to server..." with no response. image Why is this happening? What can I do to solve it?

adamhos commented 1 year ago

If you're connecting to it from a different system from which you're running it on, edit the .env file in apps/frontend and put the ip/domain of the server there

meeeo commented 1 year ago

I also encountered the same problem, after my attempts, I found that it can be solved by the following methods:

  1. Modify apps/frontend/.env , replace localhost to 127.0.1.1;
  2. Modify apps/backend/server.js, change line 313 to:

    const server = app.listen(PORT,"127.0.1.1", () => {

  3. npm start

And you should got it working on http://ip:7070.

I think this might be related to IPv6. Screen Shot 2023-05-11 at 4 19 04 PM

I use tshark to capture data on interface lo and start server, find no data actives on tcp port 2020 if it uses localhost.