I am getting API connection error

agasar

Verified User
Joined
May 16, 2021
Messages
71
Hello

Can't create socket connection to ssl://xx.xx.xx.xxx:2222. )

Array ( ) Array ( [0] => Can't create socket connection to ssl://xx.xx.xx.xxx:2222. )

wisecp.com
It gives the above error when trying to change the "Shared server" password from the panel. I enter the DA password and click the test link. It is not entering the password due to the above problems. It does not open new hosting and does not perform other operations.
 

Attachments

  • ss1.png
    ss1.png
    21.7 KB · Views: 102
Maybe the api did it. I've never encountered the server ip to be blacklisted.

You have this setting selected in the Administrator settings, right?
Prevent 127.0.0.1 from being Blacklisted

Since it happend once, it might be wise, just to be sure, to put your server ip in the ip_whitelist file, although that normally should not be needed.
 
/usr/local/directadmin/data/admin
ip.list

xxxxxxxxxxx
xxxxxxxxxxx

In the "ip.list", the above ips are added to the server ips, why is the server still banning me.


"ip_whitelist"

Did you create the folder and put it in?

xxxxxxxxxxx
xxxxxxxxxxx

Do I need to add them, should I create the "ip_whitelist" folder and put them in it?
 
Do I need to add them, should I create the "ip_whitelist" folder and put them in it?
No. The ip_whitelist is a file just like the ip_blacklist so it's not a folder.

If it does not exists, you can create that file yourself in the same folder as the ip_blacklist file:
/usr/local/directadmin/data/admin
if you want, you can add your server ip in there.
However, I would investigate why the server ip get's banned, that is not something which normally can happen. You have to check your logfiles for that and maybe post here the issue.

You should not touch the ip.list file, that is the ip list of DA. Don't fuzz with that.
 
Back
Top