-
Notifications
You must be signed in to change notification settings - Fork 67
Configuration for outbound IP address
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.
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.
Follow these steps if you have a dedicated IP address, but Akamai is still blocking your requests:
- 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.
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.