Set up Android Emulator networking | Android Studio | Android Developers
The emulator provides versatile networking capabilities that you can use to set up complex modeling and testing environments for your app.