Php curl proxy not working with Godaddy guest move

here is my code:

$url ='http://checkip.org';
$proxy='202.203.132.26:3128';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_VERBOSE,1);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); 
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, true);
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_TIMEOUT, 60);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo curl_exec ($ch);

      

at startup. it shows that my IP is always 72.167.232.25 or 72.167.232.26. although i changed $ proxy with delta value.

I tested it with my computer and this work. !!

Did I miss something?

0


source to share


1 answer


Unfortunately, we do not allow inbound or outbound access to this particular port. You are in a shared hosting environment, so the ports available are limited. However, you will be able to connect to the server using the HTTP port, port 80. Also, if you have an SSL server installed, you will be able to connect to the server using port 443. If you connect to the server using FTP, you will use the port 21, and if you are connecting via SSH, you will be able to connect on port 22. Unfortunately, we cannot provide you with a complete list of open and closed ports in a shared hosting environment.



+4


source







All Articles