title: Socket Connection with server : java.net.UnknownHostException: Unable to resolve host "<URL>": No address associated with hostname
body: <p>I am trying to stream an byte buffer through socket connection.</p>
  <p>Its not making connection with the server.I have added <code>Internet</code> &amp; <code>ACCESS_NETWORK_STATE</code> permission to manifest file.</p>
  <p>Here is my socket code :</p>
  <pre><code>int port = 80;
  
  System.out.println(&quot;Connecting to &quot; + ServerUrl.url_audio_call + &quot; on port &quot; + port);
  Socket client = new Socket(&quot;http://192.168.1.1/call&quot;, port);
  System.out.println(&quot;Just connected to &quot; + client.getRemoteSocketAddress()); 
  OutputStream outToServer = client.getOutputStream();
  DataOutputStream out = new DataOutputStream(outToServer);
  out.write(bData);
  </code></pre>
  <p>LogCat error :</p>
  <pre><code>01-22 12:07:03.990: I/System.out(14688): Connecting to http://192.168.1.1/call on port 80
  01-22 12:07:03.990: W/System.err(14688): java.net.UnknownHostException: Unable to resolve host &quot;http://192.168.1.1/call&quot;: No address associated with hostname
  01-22 12:07:03.990: W/System.err(14688):    at java.net.InetAddress.lookupHostByName(InetAddress.java:400)
  01-22 12:07:03.999: W/System.err(14688):    at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242)
  01-22 12:07:03.999: W/System.err(14688):    at java.net.InetAddress.getAllByName(InetAddress.java:220)
  01-22 12:07:03.999: W/System.err(14688):    at java.net.Socket.tryAllAddresses(Socket.java:108)
  01-22 12:07:03.999: W/System.err(14688):    at java.net.Socket.&lt;init&gt;(Socket.java:177)
  01-22 12:07:03.999: W/System.err(14688):    at java.net.Socket.&lt;init&gt;(Socket.java:149)
  01-22 12:07:03.999: W/System.err(14688):    at com.audio_demo.Audio_Call.sendRec(Audio_Call.java:447)
  01-22 12:07:03.999: W/System.err(14688):    at com.audio_demo.Audio_Call.access$0(Audio_Call.java:383)
  01-22 12:07:03.999: W/System.err(14688):    at com.audio_demo.Audio_Call$2.run(Audio_Call.java:374)
  01-22 12:07:03.999: W/System.err(14688):    at java.lang.Thread.run(Thread.java:856)
  </code></pre>
  <p>Where I am going wrong?</p>