Hey everyone, I’m working on an app which integrates with Phillips Hue lighting. This works by accessing the API using the IP address of the Philips Hue bridge which is connected to the wifi router.
A GET request to the endpoint works via postman, but when ran in expo (ios simulator), it throws an error ‘[TypeError: Network request failed]’. The endpoint is as follows:
https://<ipAddress>/api/0/config
From my research I think it is due to how the simulator runs, using it’s own ip address. Is it because the simulator is running on its own local network and so the bridge that I’m trying to connect to using the IP address, doesn’t exist there? I’m assuming that I haven’t got that quite right, but nevertheless, I’m still not sure how I can solve this. Does anyone know what I’d need to do to be able to access the IP address of my bridge?
Thanks in advance!