What are the IP requirements for DirectAdmin?

In order for DirectAdmin to be able to run on your system, 3 things must be true:

1) The licensed IP must exist on the box. Type:

ip a
1

You must see the licensed IP in the output.

2) The licensed IP must function and be able to be bound to, e.g.,

wget --bind-address=1.2.3.4 http://www.directadmin.com/index.html
1

3) The IP that connects to our server must be the licensed IP.

If you only have a LAN with 192.168.x.x or 10.x.x.x IPs on it, then you can use this guideopen in new window.

Connecting to directadmin.com failed: Connection timed out.

During the installation of DA, the following error:

--2019-11-22 10:12:06--  (try:11)  https://www.directadmin.com/
Connecting to www.directadmin.com|216.144.255.179|:443... failed: Connection timed out.
Retrying.
1
2
3

means that the connection to our server cannot be established.

  1. If you've successfully downloaded the setup.sh script from www.directadmin.com, then it would imply that our firewall is not blocking you (if we block an IP, we block the IP on all ports). To test this, try:
wget -O /dev/null http://www.directadmin.com/index.html
wget -O /dev/null https://www.directadmin.com/index.html
1
2

If both ports are blocked, try this test using other websites, e.g.,

wget -O /dev/null http://www.apple.com/index.html
wget -O /dev/null https://www.apple.com/index.html
1
2
  1. If you cannot connect outbound to any server on port 443, then it's likely a firewall on your end. We recommend installing CSF open in new window which will open the required outgoing ports.

  2. If apple.com works, but directadmin.com does not (with the above guide), then contact us to see if your IP is in our firewall. It's also possible it's blocked at our datacenter, in which case you'd need to contact them to get it unblocked. However, if it's blocked at our datacenter, then there would be a reason for that and you'd need to convince them that whatever reason it was blocked in the first place no longer applies. You might just be part of an entire IP range block, so don't take it personally.

  3. The last possibility is that you're running on a LAN instead of the required external IP. Use the LAN installation guideopen in new window.

  4. Other related guides:

Connecting to www.directadmin.com[216.144.255.179] :443... failed: Cannot assign requested address.What are the IP requirements for DirectAdmin to run?

Connecting to directadmin.com failed: Cannot assign requested address.

This would imply that the IP that was specified for the install is not a valid IP address on your machine.

If you are running a LAN or behind a NAT with a different IP on the machine than would be visible from the internet, then use this guideopen in new window.

You can test out the command by running:

wget --bind-address=1.2.3.4 http://www.directadmin.com/index.html
wget http://www.directadmin.com/index.html
1
2

where 1.2.3.4 is the IP address in your license file. If you get the same error with the --bind-address option, then that IP is not present or valid in your network device.

The 2nd wget command should work from within a LAN. If both fail, then it's some other issue (firewall, network, routing, etc.).

You can run:

ip a
1

to see what IPs are present in your network device. Make sure the IP in your license is present somewhere in the output.

The IP in your license file must be present and working in the network device.

Last Updated: 11/7/2021, 10:33:36 PM