0

I have a nodeJS server running on my local machine and a Cordova app (hybrid). I am able to connect and run the app using the iOS simulator, however, it does not connect to the nodeJS server on my local machine when the app is installed on my iPhone.

Can you give some hints on how to resolve this issue

Thanks

user2570135
  • 2,669
  • 6
  • 50
  • 80
  • I think you need to configure network security. Here is answer http://stackoverflow.com/questions/31254725/transport-security-has-blocked-a-cleartext-http – Madman Sep 10 '16 at 17:37

1 Answers1

1

If you are on the same local network, you can run ipconfig (if on windows) or ifconfig (if on unix) to find out your local machine IP address on the local network. For example your address may be 192.168.0.2 and your node app runs on port 8080, in this instance you can use 192.168.0.2:8080 to access your server.

An easier and better way would be to use something like ngrok to create a tunnel to your local machine accessible from the internet.

Michele Ricciardi
  • 2,107
  • 14
  • 17