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();
}