What is the error in DEBUG: java.net.socketExeption "socket Closed"?

0

Yesterday my study APP was running smoothly, I finished, I made BKP and went home ...

Today I opened and went straight to check everything ... but without more or less, I received this error in the debug console .....

Unable to open debug port (127.0.0.1:57709): java.net.socketExeption "socket Closed"

You have several tutors on the net, speaking that you have another process using this port, then,
1) I opened COMMAND and gave a:

netstat -a 

But there is nothing using this door ...
I closed Android Studio and I repeated the process ... and there is nothing using this port EVEN.

Re-opened everything and the error continues ...

2) Another test I did , was to shut down the firewall completely, to be sure ... but did not give any results ..
The error continues ...

What can it be? I have no idea what to do ...

Here is my working screen:

    
asked by anonymous 26.01.2017 / 02:00

1 answer

3

On android, to reference the local network, you should use the address: 10.0.2.2:8080 because the android emulator runs on a virtual machine, so 127.0.0.1 or "localhost" will be the same as the emulator.

    
26.01.2017 / 10:01