Physical Device to access local API server


#1

While I managed to connect the iOS simulator to a local NodeJS API server, I am struggling to do the same with the physical device on the Expo network. I tried both localhost and the IP address of my machine.


#2

Correction: I had to give the physical IP of the machine (192.168.x.x.) and it worked.


#3

Glad you got it figured out!


#4

Also check this out: https://stackoverflow.com/questions/47417766/calling-locally-hosted-server-from-expo-app/49198103#49198103


closed #5

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.