Skip to main content

curl and php - connection refused

Comments

3 comments

  • cPanelLauren
    Connection Refused sounds like a firewall block. Can you confirm that the firewall on the admin server has the necessary ports open? I'd also whitelist the IP's of the admin server on the streams server and vice versa.
    0
  • rgelen
    Hello and thanks for the reply. We don't have direct access to any firewall on the cPanel "admin" machine as far as we are aware, though I have asked our provider to check. We've also asked them to confirm that port 2199 is open too. We don't have access to iptables so we can't whitelist the streams server on the admin machine but I'll ask about that too. The streams server has the admin machine's IP whitelisted - which had no effect. We do not expect the "streams" machine to require any port opening or whitelisting as there is a web server on there (obviously) that we use for stream configuration and accessing the data which works successfully with a web browser pointed at that port. Certainly at this point we certainly tend towards the opinion that some kind of firewall or similar measure is in the way. The "streams" server is a dedicated server and we can do more or less anything we like (except it is working beautifully and I don't want to break it), though I have asked the server provider to confirm that the "admin" server isn't on some blacklist or other with them. With the cPanel "admin" machine we can only access it via the methods provided by cPanel and do not have a shell account. We're running cPanel 78.0.37. We imagine that any firewall setup would be separate and we've asked our provider about that too. Our developer has just let me know that he has been able to access another cPanel server and has tried using curl to connect to "streams" and notes that this fails in the same way as with the "admin" server. So I am wondering if there is a standard or commonly-configured cPanel feature or parameter that might be causing this? As always, many thanks for comments and suggestions. --Richard E
    0
  • cPanelLauren
    We don't have direct access to any firewall on the cPanel "admin" machine as far as we are aware, though I have asked our provider to check. We've also asked them to confirm that port 2199 is open too. We don't have access to iptables so we can't whitelist the streams server on the admin machine but I'll ask about that too. The streams server has the admin machine's IP whitelisted - which had no effect.

    Ultimately I'm leaning toward the admin server here having the issue here not the stream server, especially since that server doesn't have issues performing this action in conjunction with other servers.
    With the cPanel "admin" machine we can only access it via the methods provided by cPanel and do not have a shell account. We're running cPanel 78.0.37. We imagine that any firewall setup would be separate and we've asked our provider about that too.

    In this case, if you only have access to the cPanel account you wouldn't be able to manage the firewall at all and would need to work with your provider on this.
    Our developer has just let me know that he has been able to access another cPanel server and has tried using curl to connect to "streams" and notes that this fails in the same way as with the "admin" server. So I am wondering if there is a standard or commonly-configured cPanel feature or parameter that might be causing this?

    Not that I'm aware of, it may be that they both run the same firewall software that has the same ports open/closed but this isn't really enough information to make that determination.
    0

Please sign in to leave a comment.