title: Checking service fsockopen()
body: <p>I'm trying to check service on port 9998. To do so I'm using <strong>fsockopen()</strong> function.</p>
  
  <p>Like this:</p>
  
  <pre><code>$host = "1.1.1.1";
  $port = "9998";
  $checkconn = fsockopen($host, $port, $errno, $errstr, 1);
  if($checkconn &gt;= 1){
  echo 'ok';
  } else {
  echo "$errstr";
  }
  </code></pre>
  
  <p>It always returns <strong>"Connection Timed Out - 110"</strong>, but the port is open and there is service running there.</p>
  
  <p>If I change the port (like 80), it returns successful, but why not on the 9998 port?</p>