WP_HTTP_BLOCK_EXTERNAL constant to true in your wp-config.php file will stop all outgoing network requests from your site. This is typically set on sites that are sitting behind a closed environment.
However, having this set is problematic when performing migrations using WP Migrate DB Pro. If you are pushing or pulling your database to another site, unless that site is also accessible from ‘localhost’, then the plugin won’t be able to contact the site and you will see this error:
The connection failed, an unexpected error occurred, please contact support. (#121 – scope: push)
If your site requires the constant to be set then there is a way to get round the problem so the plugin can operate.
WordPress uses another constant
WP_ACCESSIBLE_HOSTS in tandem with
WP_HTTP_BLOCK_EXTERNAL to whitelist specific hosts to get past the block. First of all you will need to add deliciousbrains.com to enable license activation and updates to the plugin and its addons. Then add the host URL of the remote site involved in the migration:
Note, the remote site ‘www.mystagingsite.com’ has the full subdomain of ‘www’, as this needs to be exactly the connection info when migrating: