I have been trying to initiate a socket connection within my application like this:
Socket socket =null;
try{
socket = new Socket("192.168.43.206",10000);
} catch(IOException e){
Log.d("Socket ",e.getLocalizedMessage());
}
I have a TCP server running on my PC which is connected to the same router as the phone on which i am debugging. But when I debug and check the object socket it contains null and yet there were no exceptions caught. What am i doing wrong?