Back

Connection refused

  • 1
  • Self Hosted
  • Flutter
LDs_Group
10 Nov, 2023, 09:22

"My mobile application (Flutter), which was working very well, is no longer functioning. When I try to authenticate, I receive an error message: 'connection refused.'"

TL;DR
The user is experiencing a "Connection refused" error when trying to connect to their mobile application. They tried changing "localhost" to their IP address and ran `docker compose up -d`, but it didn't work. Someone suggested setting the domain environment variables to the IP address, but it didn't resolve the issue. The user also tried different endpoints, but still got the "Connection refused" error. The error message they receive when trying to authenticate is "connection refused." The user is using a Flutter mobile application. There doesn't seem to be a solution provided in the thread.
LDs_Group
10 Nov, 2023, 09:25

In SELF HOST

Haimantika
10 Nov, 2023, 13:19

Are the endpoints correctly set?

LDs_Group
10 Nov, 2023, 13:20

Yes m'y console work on 'localhost:8500'

LDs_Group
10 Nov, 2023, 13:21

Yes

Haimantika
10 Nov, 2023, 13:22

Okay this is new. @Steven can you help here?

LDs_Group
10 Nov, 2023, 14:12

Okay, I'm waiting...

Drake
10 Nov, 2023, 15:47

Connection refused

Drake
10 Nov, 2023, 15:49

Is this iOS or Android? Are you on a simulator/emulator or physical device? Are you connecting to localhost for your endpoint?

LDs_Group
10 Nov, 2023, 15:53

I try all. In simulator/emulator: "Connection refused",

In physical device: "This domain is not connected to any Appwrite resource yet. Please configure custom domain or function domain to allow this request."

With API REST using Insomnia: "User (role: guests) missing scope (account)"

Drake
10 Nov, 2023, 16:02

What are you using for the endpoint?

LDs_Group
10 Nov, 2023, 16:06

In my .env: _APP_DOMAIN=localhost _APP_DOMAIN_FUNCTIONS=localhost

Then for emulator or REST_API: http://localhost:8500/v1/... In my physical device: I get IP address from "IPCONFIG" command then update my Appwrite client ENDPOINT

Drake
10 Nov, 2023, 16:07

Would you please try setting the domain environment variables to that IP address?

LDs_Group
10 Nov, 2023, 16:08

How does I do it ?

Drake
10 Nov, 2023, 19:26

update this and run docker compose up -d

LDs_Group
10 Nov, 2023, 19:30

How ? By changing "localhost" to my IP address ? πŸ˜•

Drake
10 Nov, 2023, 19:31

yes

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more