Sometimes because of the firewalld the ports of DirectAdmin gets blocked, here's the solution:
systemctl stop firewalld && systemctl disable firewalld
By running the command, the firewalld service will be stopped and disabled. Then you'll be able to access!