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
- Subscription Problem
I'm making an app in RN with Expo and Appwrite and there's a functionality which allows the user to create a task/test (i'll be reffering to them collectively a...
- Auth not working on expo react native
I'm trying to launch a development server with expo go and appwrite as a backend. On my windows pc, I've got a local docker instance of appwrite running as my b...
- Bug Report: Crash when trying to createR...
https://github.com/appwrite/sdk-for-android/issues/96 I think the bug is related with this one https://discord.com/channels/564160730845151244/1443887021314539...