title: PHP Curl on 81 port
body: <p>I have locally set 2 Apache Server on Port 80 and port 81 using XAMPP. Iam successfully able to access them through my browser. Currently the URL can be accessed at </p>
  
  <pre><code>http://27.4.198.225/ncmsl/check.php 
  </code></pre>
  
  <p>and</p>
  
  <pre><code>http://27.4.198.225:81/ncmsl/check.php. 
  </code></pre>
  
  <p>When I try to write a simple curl code for them</p>
  
  <pre><code>$ch=curl_init();                    
  $url = "http://27.4.198.225/ncmsl/check.php";
  curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_exec($ch);
  curl_close($ch);
  </code></pre>
  
  <p>It works perfectly fine for server at port 80 but doesn't work for server at port 81, i.e. </p>
  
  <pre><code>$ch=curl_init();                    
  $url = "http://27.4.198.225:81/ncmsl/check.php";
  curl_setopt($ch, CURLOPT_TIMEOUT, 60);
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_exec($ch);
  curl_close($ch);
  </code></pre>
  
  <p>What could be the possible reason? I have tried using CURLOPT_PORT but that also doesn't work</p>
  
  <p>These URL are LIVE URL. Can anybody check whether they are successfully able to access them using thei own CURL code on their own network </p>