The problem was somewhere else.
the endpoint /goto/ was redirecting (if iPhone) to iTunes store link, which even when copy and paste breaks on iPhone simulator. Just it. End of the story.
– andilabsApr 05 '14 at 15:17
use ngrok which really rocks... Check the below post https://stackoverflow.com/questions/52618330/android-emulator-not-connecting-to-localhost-api/52626534#52626534
– obaidJul 02 '20 at 07:54
1 Answers1
11
The iOS Simulator uses the host machine network so you should be able to just use localhost or your machines IP address, whichever IP your web service is listening on.