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
- {"code": 1008, "message": "Invalid Origi...
Nothing has changed in my application or console settings so I'm curious as to what I need to do to fix this. I already have the client registered so I'm not en...
- android platform invaild origina
It happened today suddenly. Our app says invalid origin. And appwrite cloud says every time we tried to add the app to it: "param platformId" is not optional.
- All my apps are not opening now
All my apps are not opening now 200+ apps are not opening plz fast