Jump to content

fsockopen() wont connect, but normal HTTP will. Why?


Luth

Recommended Posts

$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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.