If anyone interested... I've created this shell script gist to automatically detect connected Android devices (or emulators) using ADB (Android Debug Bridge) and set up reverse port mapping. This allows your mobile apps to safely access local machine APIs via http://localhost:$PORT
during development.