DEV Community

Discussion on: Appwrite + React Native

Collapse
 
iambavith profile image
iambavith

Hello sir!!

I am getting this error "[AppwriteException: Network request failed]"

Both my PC and Mobile is connected to same Wifi/Lan

Collapse
 
fernandoamz profile image
Fernando Amezcua

Hey there, Have you tried change the file sdk instead localhost use your ip

import {Appwrite} from 'appwrite';

const sdk = new Appwrite();
// Fill with your Appwrite API endpoint and Project ID!
sdk
.setEndpoint('http://YOUR_IP_ADDRESS/v1')
.setProject('12332170921f');

export default sdk;
Enter fullscreen mode Exit fullscreen mode
Collapse
 
alfirus profile image
alfirus

I did using ip, but not solve the issue. I checked port, it is open.