Android SDK: Using the emulator to browse local websites
From inside the emulator, you can access the localhost of the host machine by using the IP address 10.0.2.2 (source).

For further info about creating an AVD and using the emulator, check out the documentation.