Skip to content

Configuration for outbound IP address

khungate edited this page Jul 25, 2023 · 7 revisions

Welcome to the guide on Configuring the Outbound IP Address in the MailChimp for WooCommerce Integration. This guide will help you understand how to specify the outbound IP address used by the plugin to communicate with Akamai, especially when your hosting environment uses multiple IP addresses.

Background

Multiple IP Addresses

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

Steps

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');

Once the IP address is defined in this way, the plugin will use it for all outbound API requests to Akamai.

Troubleshooting

CURL Bind Error

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.