I am running it locally with docker on my PC
You need to use your local IP then š
that is why i can access the console with this http://localhost:300/
ok
I will try this as my end point now, http://192.168.1.[*]:300/v1 right?
Yess, but do check your complete IP though, I just used [*] for explanation.
sure
it didn't work, i still get the same error
can you post the complete error, ip, port and the endpoint used in the android project?
sure
error
appwriteEndpoint="192.1*8.6.*:300/v1" endpoint
port
ports:
- 300:80
- 444:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- appwrite-config:/storage/config:ro
- appwrite-certificates:/storage/certificates:ro
depends_on:
- appwrite
networks:
- gateway
- appwrite
@darShan
this specific error is occurring because you never called client.setEndpoint() on your Client instance
I corrected that.
but now I am having the first error from few days ago.
java.net.SocketTimeoutException: failed to connect to /192.1*8.6.** (port 300) from /192.1*8.6.1*4 (port 57562) after 10000ms
@Steven
- Did you include the scheme as part of the endpoint (
http://192.168.6.134:300/v1)? - Can you browse to the same URL on your PC?
- Is your phone on the same network as your PC?
- Can you browse the same URL on your phone?
anwering Q1. Yes I did. this format http://192.168.6.134:300/v1)
Q2, No, unless i use localhost:300. I am unable to browse with this http://192.168.6.134:300/v1
Q3. No but i tried connecting them on the same network as well, but i got the same error.
Q4. I will try that now
If the IP address doesn't even work on your PC, there's no way it will work from a different device.
You might have a docker problem, firewall problem, or antivirus problem
Thanks. I worked my way around it.
I had to enter my IP address as the localhost instead of the default while pulling Appwrite image
[SOLVED]SocketTimeoutException:
Recommended threads
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support š I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...
- Database listRows method call failing in...
I'm getting an error when trying to use listRows in a flutter app on a database. It seems something in the backend has changed because the production version of...