1 Reply Latest reply on Oct 10, 2007 12:05 PM by Anil Saldanha

    Socket Connection Denied?

    Andrew Chamberlain Newbie

      Hi All,

      Just wondering if anyone can help. I'm trying to submit HTTP POST request to a JBoss application from a PHP client, but I'm getting permission denied (error 13) when first attempting to connect to the JBoss server.

      What I'm trying to work out is where the problem is. I don't think it's our firewall as we've temporarily removed all rules without making any difference.

      Is it possible that JBoss might be rejecting this? If so, is there a way of allowing it?

      We are running version 4.0.5.GA on a Fedora Core 6. In case it helps, I've included a condensed snippet of PHP where the error manifests.

      Any advice/suggestions would be very welcome.

      Andy

      <?php
      
      $host = "localhost";
      $port = 8080;
      if (!$fp = @fsockopen($host, $port, $errno, $errstr, 30))
      {
       echo "Error (" . $errno . "):" . $errstr;
      }
      else
      {
       echo "Connected OK.";
       fclose($fp);
      }
      
      ?>