Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Failed to connect to port 2083 Connection refused

Discussion in 'General Discussion' started by Manish Laungani, Jun 4, 2019.

  1. Manish Laungani

    Manish Laungani Member

    Joined:
    May 31, 2019
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jaipur, India
    cPanel Access Level:
    Website Owner
    We have set up a WordPress multisite, using WP-ultimo. and while heading towards the domain mapping part, we were asked to add a snippet of code to the WP-config.php file ( code displayed below).

    When we try to add the domain as an alias to the account site, WP throws an error "Failed to connect to mydomain.com port 2083: Connection refused". Typically the code is supposed to connect to the cpanel so that an alias can be created further to which SSL will be installed to that site.

    We have spoken to the guys who developed the plugin, and it seems they have nothing to do with it. Does anyone have any idea what could be the issue here ?
     
    #1 Manish Laungani, Jun 4, 2019
    Last edited by a moderator: Jun 4, 2019
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Manish Laungani,

    I'm not sure how the WordPress plugin is designed, however as a first step I recommend contacting your web hosting provider to have them verify that no firewall rules on the server are configured to restrict traffic over port 2083.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Manish Laungani

    Manish Laungani Member

    Joined:
    May 31, 2019
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jaipur, India
    cPanel Access Level:
    Website Owner
    Hi @cPanelMichael, thanks for your prompt response. We wrote to out hosting guys, and this was their response.

    Dear client,
    "By default, we do not block ports on the servers except for the NTP. We can see that 2083 is not open on the server, so you should configure it from within your system.
    Unfortunately, we do not have access to your OS, so we suggest you should check the settings.
    Thank you.
    <br />Yours sincerely,<br />
    Hostkey Support Team<br />"

    So, here is what I'm curious about...
    1) If the 2083 port isn't configured, then how are we able to access cPanel with these 2 links - mydomain.com/cpanel and mydomain.com:2083. Also, I should have mentioned both these links don't work with http, only https
    2) How do I resolve this?

    Regards
    Manish
     
    #3 Manish Laungani, Jun 5, 2019
    Last edited by a moderator: Jun 5, 2019
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello Manish,

    It's difficult to know the exact reason for the failure without more information about the script you are using. Can you share an example of the lines of code that are used with this custom script? Ensure to paste the example in CODE tags and replace any identifying information about your server or login details with example data.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Manish Laungani

    Manish Laungani Member

    Joined:
    May 31, 2019
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jaipur, India
    cPanel Access Level:
    Website Owner
    So, I did a little google of my own and came across this thread (How to enable firewall in whm). I followed those suggestions, got the firewall configuration done. But, the issue still seems to be the same.
     
  6. Manish Laungani

    Manish Laungani Member

    Joined:
    May 31, 2019
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jaipur, India
    cPanel Access Level:
    Website Owner
    Here is the code added to the wp-config.php file
    PHP:
    /* WP Ultimo: Adding automatically domain syncing to cPanel */
    define('WU_CPANEL'true);                        
    define('WU_CPANEL_USERNAME''dbuser');          
    define('WU_CPANEL_PASSWORD''dbpassword');        
    define('WU_CPANEL_HOST''mydomain.com');      
    define('WU_CPANEL_PORT'2083);                  
    /* end WP Ultimo */
    i
     
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Manish Laungani,

    You'll need to report this issue to the developer of the WordPress plugin you are using so they can investigate and verify why the plugin is not working on the cPanel & WHM server your shared account is hosted on. Let us know the outcome once you hear back from them.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Manish Laungani

    Manish Laungani Member

    Joined:
    May 31, 2019
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jaipur, India
    cPanel Access Level:
    Website Owner
    @cPanelMichael, please refer to the first post in this thread. What you have suggested is exactly what was my first step in trying to resolve the issue. The dev pointed out that the plugins trying to access the cPanel using this URL example.com:2083, but that does not resolve. But, https//:example.com:2083 which resolves fine. Also, I was informed that 2083 is SSL port for cPanel and 2082 is a non-SSL port for cPanel, which makes it weirder.

    Here's a direct question, how is https://example.com:2083 accessible and example.com:2083 is not?

    Further, I have even set up and configured the firewall on WHM.
     
    #8 Manish Laungani, Jun 6, 2019
    Last edited by a moderator: Jun 7, 2019
  9. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    SSL (https) is required for port 2083, so simply entering "example.tld:2083" in your web browser will fail because your browser will default to the non-secure "http" URL.

    Can you confirm if you have root access to this server (with Web Host Manager access), or if this is a shared hosting account with cPanel access only? If you only have cPanel access, then you won't be able to troubleshoot further as this is something your hosting provider must troubleshoot.

    If you do have root access, check WHM >> Host Access Control to make sure port 2083 (cpsrvd) isn't blocked or restricted there.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Manish Laungani

    Manish Laungani Member

    Joined:
    May 31, 2019
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jaipur, India
    cPanel Access Level:
    Website Owner
    HI @cPanelMichael, we have the root access to the server ( it's not shared hosting). Here is the screenshot of the host access control page from our WHM.

    - Removed -
     
    #10 Manish Laungani, Jun 11, 2019
    Last edited by a moderator: Jun 12, 2019
  11. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Manish Laungani,

    Can you add the image directly to the post as an attachment using the "Upload A File" button at the bottom of the post response field?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Manish Laungani

    Manish Laungani Member

    Joined:
    May 31, 2019
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jaipur, India
    cPanel Access Level:
    Website Owner

    Attached Files:

  13. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    1,291
    Likes Received:
    91
    Trophy Points:
    28
    cPanel Access Level:
    Root Administrator
  14. Manish Laungani

    Manish Laungani Member

    Joined:
    May 31, 2019
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jaipur, India
    cPanel Access Level:
    Website Owner
    Yes, that what I thought at first, but it actually breaks the code. I also checked with the devs of the plugin, they very specifically recommend against it.
     
  15. Manish Laungani

    Manish Laungani Member

    Joined:
    May 31, 2019
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jaipur, India
    cPanel Access Level:
    Website Owner
    I'm in constant touch with the dev, and they say that the "It looks like your server firewall is, in fact, blocking outgoing calls to port 2083, which results on the Connection refused messaged... you need to open port 2083 for outgoing access on iptables."

    Does anybody know how to do that? I checked the IP tables by using the below command, and it seems that the 2083 port isn't blocked...but, I'm not sure if I'm reading it right. Could anyone check the same for me?

    Code:
    sudo iptables -S
     

    Attached Files:

  16. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice