Last Updated: September 09, 2019
· kevinsuttle

Previewing your local webserver on mobile emulators

For iOS, (assuming XCode is installed): Run the following from the Terminal:

ln -s /Applications/\ /Applications/iOS\

via my dotfiles

Then, you can navigate to http://localhost:XXXX as usual.

For an Android emulator, simply open your browser and navigate to which is a way of telling the emulator "not your localhost, the machine the emulator is running on, that localhost".

via the Android Developer site