title: 'remote-server-timeout' exception as I try to connect to the server
body: <p>While trying to connect to <em>openfire</em> server through the following code :</p>
  
  <pre><code>Connection connection = new XMPPConnection("https://192.168.0.101:5222");
  connection.connect();
  </code></pre>
  
  <p>I get an exception which says :</p>
  
  <pre><code>https://192.168.0.101:5222:5222 Exception: Could not connect 
  to https://192.168.0.101:5222:5222.; : remote-server-timeout(504)
  </code></pre>
  
  <p>What could be the reason for this ?</p>
  
  <p><em><strong>Note</strong> : I have allowed openfire fire server through the firewall.I also tried putting off the firewall, but the same result.Server is my own machine. The same machine on which I am trying to run the program.</em></p>