title: Android Socket.IO timeouts and cannot create a connection
body: <p>Okay, so I've a server with IP: <code>38.66.221.111</code>
  And Server PORT: <code>52323</code></p>
  
  <p>At first, I wanted to check if socket is available on server side, so I downloaded <code>Termius</code> application to test it:</p>
  
  <p>So I added IP address <code>38.66.221.111</code>, checked "TELNET" and added port <code>52323</code> and connection was made successful.</p>
  
  <p>Then I went to my Android application and tried to do the socket connection using <code>nkzawa</code> library for sockets.</p>
  
  <p>Code looks like this:</p>
  
  <pre><code>try {
       socket = IO.socket("http://38.66.221.111:52323")
  
       socket.apply {
          on(Socket.EVENT_CONNECT, onConnect)
          on(Socket.EVENT_DISCONNECT, onDisconnect)
          on(Socket.EVENT_CONNECT_ERROR, onConnectError)
          on(Socket.EVENT_CONNECT_TIMEOUT, onConnectTimeout)
      }
  } catch (e: URISyntaxException) {
      e.printStackTrace()
  }
  </code></pre>
  
  <p>From logs received, all I got is <code>onConnectError</code> and <code>onConnectTimeout</code> callback. Why is it working on Termius, but not on my app? </p>
  
  <p><code>com.github.nkzawa.socketio.client.SocketIOException: timeout</code> is received in onConnectError callback. </p>
  
  <p>Library that I'm using:</p>
  
  <pre><code>implementation('com.github.nkzawa:socket.io-client:0.6.0', {
      exclude group: 'org.json', module: 'json'
  })
  </code></pre>
  
  <p><strong>WHAT HAVE NOT WORKED FOR ME</strong>:</p>
  
  <ul>
  <li>Added network permission</li>
  <li>Disabled timeout with <code>socket.io().timeout(-1)</code></li>
  </ul>