Luth Posted May 26, 2007 Share Posted May 26, 2007 $host = "66.90.103.76"; $port = "8236"; $fp=fsockopen($host,$port,&$errno,&$errstr,10); if (!$fp) { echo "Can't connect: ($errno) $errstr"; exit; } Always fails: Warning: fsockopen(): unable to connect to 66.90.103.76:8236 in [yadda yadda yadda] Can't connect: (110) Connection timed out as seen here: http://www.almostinteractive.com/GVR/stats.php But if you put that address "66.90.103.76:8236" into your browser, it'll connect just fine, as seen here: http://66.90.103.76:8236 Why cant fsockopen connect, do you think? I've been able to open connections to other sites from this script by changing the host/port parameters, yet this one seems most uncooperative. Link to comment https://forums.phpfreaks.com/topic/53063-fsockopen-wont-connect-but-normal-http-will-why/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.