Skip to content

Configuration for outbound IP address

khungate edited this page Jun 21, 2023 · 7 revisions

Configuring Outbound IP Address

This guide explains how to specify the outbound IP address used by the Mailchimp for WooCommerce plugin to communicate with Akamai, especially when your hosting environment uses multiple IP addresses.

Background

It's common for hosts that utilize CPANEL, WHM, and similar tools to have multiple IP addresses. By default, PHP CURL, a library used by this plugin for making HTTP requests, uses the first detected IP address. However, this plugin provides a feature for developers to manually set the IP address used for communications with Akamai.

Procedure

Follow these steps if you have a dedicated IP address, but Akamai is still blocking your requests:

  1. Add the following line to your wp-config.php file, replacing domain.ip.address with your actual IP address:
define('MAILCHIMP_USE_OUTBOUND_IP', 'domain.ip.address');
  1. Once the IP address is defined in this way, the plugin will use it for all outbound API requests to Akamai.

Troubleshooting

If you encounter a CURL bind error, you can try disabling the outbound IP address feature. Add the following line to your wp-config.php file:

define('MAILCHIMP_USE_OUTBOUND_IP', false);

If neither of these solutions resolves your problem, you may need to consult with your web host or IT department. Ensure that the IP address associated with your domain is correctly configured on the network interface.