title: Server accessible to proxies but not cURL?
body: <p>I have tested my local server with a proxy and my friends can all load the url in their browser, but when I try to use cURL on a separate server, it fails connecting.</p>
  
  <p>Here is the URL, it loads on both my browser and using my friend's internet:</p>
  
  <pre><code>http://pc.stephen3.com:8080/gameq.php
  </code></pre>
  
  <p>Here is the code I am using on a separate server, it successfully retrieves all other URLs (like google and yahoo)</p>
  
  <pre><code>$ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, "http://pc.stephen3.com:8080/gameq.php");
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $err = curl_error($ch);
  $resp = curl_exec($ch);
  echo $resp;
  echo $err;
  </code></pre>
  
  <p>But it returns nothing on my home server's url, and</p>
  
  <pre><code>curl_error($ch);
  </code></pre>
  
  <p>(did say, now says nothing) "couldn't connect to host"</p>
  
  <p>Any ideas what it could be? The url works everywhere, but in cURL. The code works everywhere but with the URL.</p>
  
  <p><strong>EDIT:</strong> It occurred to me that it may be because of the outbound traffic on my external server being on port 8080 instead of 80 for regular servers, will have to test if my hoster allows curl on other ports.</p>