从Web服务器到代理服务器的连接超时

当我尝试使用php脚本连接到代理服务器时,在本地计算机上一切正常。 但是,当我在Web服务器上尝试相同的脚本时,会发生超时错误。

脚本看起来像这样:

<?php $username = ‚***********'; $password = ‚*********'; $port = 22225; $session = mt_rand(); $super_proxy = ‚*********'; $curl = curl_init('http://lumtest.com/myip.json'); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_PROXY, "http://$super_proxy:$port"); curl_setopt($curl, CURLOPT_PROXYUSERPWD, "$username-country-de-session-$session:$password"); $result = curl_exec($curl); curl_close($curl); if ($result) echo $result; ?> 

什么是可能的障碍,阻止连接?

编辑:networking服务器ist由wint.global托pipe

PHP的5.6.32

curl支持已启用SSL已启用

代理服务器来自于光照

编辑2:它看起来像连接问题发生在特定的端口。 并在其他港口消失。 我只是不知道代理服务器的端口与Web服务器的端口有什么关系