Usually I use localhost:port but in emulator you need to change localhost to 10.0.2.2 and it's should works.