When trying to access my NestJS api running locally MacBook from a React Native app, axios gives me a LOG "Could not connect to the server."
. Even when trying to access the http://192.168.65.1:3000/ from another laptop does not work. I can weirdly ping the server from another device just fine. And running it on the same MacBook with localhost also works. I have set up a fairly basic NestJS api with Fastify. I have no firewall running. What the hell am I missing?
Asked
Active
Viewed 192 times
0

Bowis
- 541
- 8
- 31
-
have you checked this https://stackoverflow.com/questions/45980173/react-axios-network-error – Louay Badri Feb 17 '23 at 22:41