Jump to content

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


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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.