title: How to connect to a node.js server from android?
body: <p>I am using the following code to communicate with a Node.js server through socket.io but I am unable to obtain a connection.</p>
  
  <pre><code>private Socket mSocket;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
       try {
          mSocket = IO.socket("http://163.172.112.100:8443");
          Log.i("MainActivity: ", "Successfully connected!!!");
      } catch (Exception e) {
          e.printStackTrace();
          Log.i("MainActivity: ", e.toString());
      }
  
      mSocket.connect();
  }
  </code></pre>
  
  <p>Can anyone tell me how to obtain a connection with the server or a better android library for socket.io?</p>