I running nodeJS server on my mac and have some API services. I connected my iPhone to my mac. How can I can make my app call the API services that is running on localhost
Thanks
CodePudding user response:
The iPhone and the Mac are connected to your local network. They both have local IP addresses. In your app, you need to connect to your Mac's IP address like https://192.168.0.3/some.js
. If your Mac does not have some Firewall to block this, it should work.