java.net.ConnectException - Connection Refused Android Emulator
According to Emulator Networking IP 10.0.2.2
should be used instead of localhost
/127.0.0.1
.
I got this figured out. If I use the internal ip it works fine (192.168.1.%) address.
Sorry for the wasted space here but maybe someone else will be able to use this.
the 127.0.0.1 is for the device (emulator) itself.
instead of 'localhost' put your address (192.168.1.%)