Back

[SOLVED] my website is working in localhost but not when running on a vm in my network

  • 1
  • Web
sophex89
31 Dec, 2023, 07:08

Hi, when I am running my nextjs project locally everything is working fine but when I run the website on a vm I am getting "AppwriteException: Network request failed " So I am trying to connect to <My Ip>:3000/login and the login is failing due to the network error my appwrite server is on cloud.appwrite.io

TL;DR
The user's website is working fine on localhost but not when running on a VM in their network. The issue was resolved by configuring the project with the IP of the VM and ensuring that the VM has internet access. The user was getting a network error when trying to connect to their appwrite server on cloud.appwrite.io.
ideclon
31 Dec, 2023, 07:13

Does this VM have Internet access?

ideclon
31 Dec, 2023, 07:14

Can you reach https://cloud.appwrite.io from a browser in this VM?

Sanchit Bajaj
31 Dec, 2023, 07:14

have you configured your project with the ip of your vm?

sophex89
31 Dec, 2023, 07:24

how do I do that?

sophex89
31 Dec, 2023, 07:24

yes

ideclon
31 Dec, 2023, 07:26

In the Console Overview page, near the bottom, there’s an Add platform button

sophex89
31 Dec, 2023, 07:29

that what I was missing!, thanks!

ideclon
1 Jan, 2024, 00:42

If your issue has been solved, you can mark this post as closed by adding “[SOLVED]” to the beginning of the title

Drake
1 Jan, 2024, 23:02

[SOLVED] my website is working in localhost but not when running on a vm in my network

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