0

I want my Android phone to connect to my other server. I’m not sure how do I send request to the server receive the response.

Here is my code

try
{
Socket connfd = new Socket("192.168.1.100", 5000 );
InputStream in = connfd.getInputStream();
OutputStream out = connfd.getOutputStream();
BufferedReader con = new BufferedReader(new InputStreamReader(System.in));
}catch(IOException e1){
    e1.printStackTrace();

}
  • http://stackoverflow.com/questions/7384678/how-to-create-socket-connection-in-android – PeterMmm Jun 17 '13 at 11:45
  • [Here](http://myandroidsolutions.blogspot.ro/2013/03/android-tcp-connection-enhanced.html) you can find a sample. I hope it helps :) – Cata Jun 17 '13 at 11:45

0 Answers0