Fixing up the issue for Android emulators by switching out localhost for the 10.0.2.2 emulator feature http://developer.android.com/tools/devices/emulator.html#networkaddresses