Hi,
could you please advice how to connect to development machine from device?
I can easily do this from Emulator, but from device I have connection timeout exception.
Here is my code:
String hostname = "10.0.2.2";
int port = 4444;
Socket socket = null;
try{
socket = new Socket(InetAddress.getByName(hostname), port);
} catch(UnknownHostException e) {
Log.e("Capturer","UnknownHostException : " + e.getMessage(), e);
} catch(IOException e) {
Log.e("Capturer", "IOException : " + e.getMessage(), e);
}
Thanks