PHP CURL (Failed to connect to 192.168.168.85 port 8080: Connection timed out)
<p>I am using PHP cURL to get the response back from the api (192.168.168.85:8080) with GET request.
When i run the code in localhost. Everything runs perfect(response is obtained) but the same code does not work from the live server.</p>

<p><strong>Here's my code</strong></p>

<pre><code>        $curl = curl_init();

    curl_setopt_array($curl, array(
        CURLOPT_RETURNTRANSFER =&gt; 1,
        CURLOPT_FOLLOWLOCATION=&gt;1,
        CURLOPT_URL =&gt; $sendHere//$sendhere is (192.168.168.85:8080?along with some query strings)
    ));

    $resp = curl_exec($curl);

    $test=curl_error($curl);
    echo json_encode([$test,$resp]);
</code></pre>

<p>Every time the response is false along with Error 7. Failed to connect</p>

<p>I have done a lot of research and gone through all the question that have been asked and found that this could be because of proxy or port other than 80 but still cannot figure out how to solve the issue.</p>

<p><strong>Please help</strong></p>