this is probably a question about tcp/ip connection between emulator and pc....again
the emulator is a virtual machine emulating an android-os, and is not sharing any network configuration with your pc. the emulator's localhost is the emulator, not the PC starting the emulator. if you want to establish any tcp/ip connection between emulator and pc, don't use localhost! localhost is bad
the android emulator has an virtual ip-address. afaik it's 10.0.2.15