I can't connect to DirectAdmin on port 2222

Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"

Top Level » TroubleShooting
Top Level » DirectAdmin

I can't connect to DirectAdmin on port 2222Last Modified: Apr 25, 2020, 3:08 pm
If you are unable to access your server via, then 1 of 3 things is likely happening:
  1. DirectAdmin might not be running, check to ensure you see several 'directadmin d' processes running:

    ps ax |grep -v grep | grep directadmin

    Not that the da-popb4smtp should be running, but is not related to your 2222 connection.
  2. You have a firewall blocking port 2222. This is easy to check by simply running (only on redhat systems):

    /sbin/service iptables stop
    /sbin/chkconfig iptables off

    Then test directadmin again.

    Newer operating systems
    CentOS 7+ uses a different method of firewall control. To shut it off completely, type:

    systemctl disable firewalld
    systemctl stop firewalld

    To just open port 2222, reported:

    firewall-cmd --permanent --zone=public --add-port=2222/tcp

  3. If that didn't fix it, then you'd need to check your /var/log/directadmin/error.log to check for any errors as to why it isn't starting:

    tail /var/log/directadmin/error.log

    Common problems are:
    1. Incorrect ethernet_dev set in the /usr/local/directadmin/conf/directadmin.conf file. guide
    2. Invalid license, either due to wrong uid/lid, IP, or date.  Try: Updating your DirectAdmin License manually
  4. Your IP is blacklisted in /usr/local/directadmin/data/admin/ip_blacklist.  This is controlled by the "brute force login detection" in Admin Settings.  Use a setting no lower than 10, since even loading the login page counts as 1 failed attempt.
  5. Binaries for a different operating system. Related
  6. You can always try running DirectAdmin by hand (if it's not already running) to see what the problem is.

    cd /usr/local/directadmin
    ./directadmin b200

    to start it in the terminal with debug level 200.  Use Ctrl-C to stop.
  7. If DirectAdmin is running, is bound to port 2222, but doesn't respond on "", but does respond on "::1", then it's an IPv6 issue.  This guide would be related.

Related Helpfiles
error with wget: use `--no-check-certificate` for licenses/updates
The ip of this machine () does not match the ip in the license file
I can't login to DirectAdmin. The login page just refreshes without any errors.
My system is saving passwords in SHA-512 and DirectAdmin can't read them. I need MD5
I get "Your IP is blacklisted" when I try to login
Which OS am I using?
I need a firewall. What are my options?

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST