Problem with api action from server connect

appconnect
#1

Hi, i am trying to use api action from server connect and i have an error:

code: 0
file: “/var/www/html/anofmnou/dmxConnectLib/modules/api.php”
line: 224
message: “Failed to connect to 2a01:7080:24:100::666:30: Network is unreachable”

the page is: https://www.anofm.ro/apilmv.html

May i get some help, please? Thks.

#2

The message is very clear, the network cannot be reached. This could be because the IP address is incorrect, it could also be because the IPv6 value is not recognised. Have you tried using IPv4 or the name value of the address?

#3

Sorry but, from the same laptop and browser, the direct connection (from browser) works fine, so…
I think that the module api.php try to connect useing IPv6; is this configurable?

#4

“message”:“Failed to connect to 2a01:7080:24:100::666:30: Network is unreachable”

2a01:7080:24:100::666:30 is a IPv6 adress, i need to connect to IPv4…

I hoped that adding CURL_IPRESOLVE_V4 => TRUE in curl_setopt_array in the module api.php will solve the issue, but id didn’t…
No ideea from nobody? I realy need this to be done…