Back

Communication With Active Appwrite Instance On Local Host [A Solution]

  • 0
  • General
  • Self Hosted
dammy
28 Jun, 2024, 15:40

having issues communicating with your running appwrite containers locally such as: AppwriteException: , ClientException with SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost, port = 53612, uri=http://localhost/v1/account/sessions/email (0) or any other error that shows inability to communicate with the running appwrite services despite access to appwrite console on your web browser?

Try this trick 🀯 from: http://localhost/v1 to http://localhost:80/v1 or http://localhost:[the_port_number_you_specified_during_installation]/v1

the above will specify the port number that the appwrite http request is running on, also remember bot to skip the/V1

having any issues despite following the above instructions? drop that here and we will help you out

TL;DR
Communication with a local Appwrite instance was tricky until the developer tried exposing the local address with Ngrok and added '/v1'. Adding ':80' before '/v1' also worked. Solution: change from 'http://localhost/v1' to 'http://localhost:80/v1' or 'http://localhost:[port]/v1'. Remember not to skip '/v1'. If facing any issues, ask for help.
dammy
28 Jun, 2024, 15:53

Want to know how I found the solution?

I was having issues while try to communicate with appwrite (the mention error was the response), until I deliberately tried to expose the local address to the internet using Ngrok and tried to use same address and added /v1, it worked and I found out that including the :80 before/v1 will also work and boom πŸ’₯ it did.

Happy Appwriting

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