Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues connecting to the WPML API server and suspect that your server might be blocked or unable to establish a connection, it's important to verify several aspects to diagnose the connectivity problem.

Solution:
First, confirm that the IP address '192.169.179.165' is the correct public IP for your server and that it's configured to host your WordPress site. Check if there are any firewalls or security services like Cloudflare or ModSecurity that could be blocking outbound connections.

Next, connect to your server via SSH or your hosting control panel's terminal and execute the following commands to gather more information about your server environment and network settings:

uname -a

dig +short api.wpml.org

nc -vz -w 10 api.wpml.org 443

curl -I https://api.wpml.org --max-time 10

getenforce

getsebool -a | grep httpd_can_network_connect

These commands will help determine the operating system details, DNS resolution for api.wpml.org, connectivity to api.wpml.org on port 443, HTTP response from api.wpml.org, SELinux status, and whether Apache or PHP-FPM can make outbound connections.

If the issue persists, check if the outbound firewall or network policy is blocking port 443 and consult with your hosting provider to enable SELinux and the 'httpd_can_network_connect' boolean. This will allow outbound connections necessary for WPML.

If these steps do not resolve the issue, it might be due to server-level configurations or restrictions beyond our control. In such cases, we recommend contacting your system administrator or hosting provider for a detailed investigation.

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 24 replies, has 0 voices.

Last updated by Paola Mendiburu 4 weeks ago.

Assisted by: Paola Mendiburu.

Author Posts
May 5, 2025 at 4:29 am #16994154

larryP-3

Background of the issue:
I have been trying to install the WPML plugin with no success. We were advised to whitelist the addresses provided and this has been done. We are unable to communicate with your API server and the problem seems to be that we are blocked from your server.

Symptoms:
We cannot reach your server at all.

Questions:
Please can you check if 192.169.179.165 is blocked as we cannot reach your server at all?

the curl function to test connectivity to your api server fails. Please can you check that you are not blocking our server

May 5, 2025 at 5:08 am #16994235

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

I checked our firewall logs and found no indication that IP `192.169.179.165` is being blocked on our side. Also, when trying to open `hidden link` directly, I’m redirected to a default server page (`/cgi-sys/defaultwebpage.cgi`), which usually appears when no site is configured for that IP.

Could you please confirm the following so we can troubleshoot further:

1. Is `192.169.179.165` the correct public IP address of the server hosting your WordPress site? It seems like this IP might not be serving the live site directly, or might not have WordPress running on it.

2. What is the actual domain or URL of your website where WPML is installed? This will help us run proper connectivity tests and check server headers.

3. Are there any firewalls or security services (e.g., Cloudflare, ModSecurity, server-level firewalls) in place on your end that could be interfering with outbound connections?

Once we have these details, we can better identify where the connection is failing and how to resolve it.

May 6, 2025 at 1:55 am #16998814

larryP-3

Hello, I provided the domain in an earlier email it is hidden link with ip address 172.67.150.243

We are using cloudflare and have a firewall. All the sites you indicated that need to be whitelisted have been configured. We cannot connect to your server with

curl -I hidden link

I have checked this myself and have had another individual test it and we have the same result

Please can you advise how to proceed

Regards

Alan

May 6, 2025 at 11:20 am #17001155

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Would you be willing to provide me with WordPress credentials so I could investigate the issue directly?

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

I marked your next reply as private so that you can safely add credentials.

May 15, 2025 at 12:16 pm #17036828

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

You were trying to install our plugins through OTGS Installer and this is where it fails?

What if you download it directly from the https://wpml.org/download/wpml-multilingual-cms/?section=changelog and install it?

Once you have it we can check the status of the connection to our API within its installer.

May 20, 2025 at 1:00 pm #17052811

larryP-3

Hello I downloaded the installer directly from your site. I can try using an older version if you can suggest one.

I got the latest version and have the curl error issue.

May 20, 2025 at 1:17 pm #17052933

larryP-3

plugins were installed manually and we get the output in the image

the url to the site we enabled the plugins on is

hidden link

error.png
May 20, 2025 at 2:07 pm #17053200

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

I've reviewed the installer log, and it shows the following error:

wpml: Connection error: Unable to get data from service. Detailed error: cURL error 7: Failed to connect to api.wpml.org port 443: Connection timed out

hidden link

This indicates WPML is unable to connect to its API server. Our documentation suggests this is often caused by a firewall blocking the connection.

Please contact your hosting provider and ask them to whitelist the following domains:

* wpml.org
* cdn.wpml.org
* api.wpml.org
* api.toolset.com
* cloudfront.net

Regarding this URL:

hidden link – it returns a 404 even when WPML is not active, so it doesn’t appear to be related to WPML.

I also noticed that WPML is installed and active here:
hidden link

However, the site key is not registered under:
hidden link\&repository=wpml\&action=register

Could you please register your WPML key directly through that page?

Lastly, just to confirm—are you still experiencing an issue with WPML not being configured properly? From what I can see, it appears to be properly installed and usable at this point.

Let me know if you're still encountering issues or if there's something else you’d like me to look into.

May 21, 2025 at 2:58 am #17054810

larryP-3

We are still having issues registering as is shown in the attached file.

your API server refuses to connect to our server and we get the CURL error displayed

error2.png
May 21, 2025 at 3:27 am #17054840

larryP-3

I manually installed the plugins and registered a subdomain as follows:

hidden link

whenever I try to register the curl error is displayed. It indicates the api server is rejecting requests.

I have had 4 support professionals look at this and they all conclude that the api server is denying access. We cannot get past registration.

Also I did note that when setting up the French language, there was no choice for French Canadian. I would hope that we can select this once we get past the registration process

error3.png
May 21, 2025 at 9:21 am #17056102

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

I asked our systems team to check this and I will get back to you. In the meantime, can you check why I get "There has been a critical error on this website." on hidden link?

The same is for hidden link.

As for the French Canadian, you can add it later but also during the wizard itself, in the first step.

https://wpml.org/documentation/getting-started-guide/language-setup/editing-wpmls-languages-table/#add-custom-languages

create here.jpg
May 21, 2025 at 12:51 pm #17057384

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Also, could you tell mewhich operating system / hosting stack the site is running on?

May 27, 2025 at 2:12 am #17075522

larryP-3

I sent a message earlier but it does not show here

We are using a VPS running AlmaLinux 8.10 (Cerulean Leopard)
We use mysql Ver 14.14 Distrib 5.7.44
and WordPress 6.8.1

May 27, 2025 at 8:55 am #17076545

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

Hi there!

I will continue with the ticket as Brunos is on holidays.

I’ve forwarded the information to the systems team for further review.

I will let you know when I have some news.

June 2, 2025 at 1:54 am #17096086

larryP-3

Thanks, please can you advise if there is any progress on this.