It's a good default, because on the Android emulator 10.0.2.2 is a magic route to the real 127.0.0.1.  Dunno about iOS.