2 Replies Latest reply on Oct 12, 2007 5:54 AM by andrewjc

    Unable to Open Socket to JBoss

    andrewjc

      Hi All,

      Just wondering if anyone can help. I'm trying to submit an 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.

      I don't think it's our firewall as we've 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);
      }
      
      ?>