For Docker wp development: Replace loopback requests to localhost with host.docker.internal
As of April 2026, localhost2host.docker.internal is a WordPress wp-env plugin with 0 active installations and a 5/5 rating from 1 reviews. It has been downloaded 4.8K+ times in total. Requires WordPress 6.3+ and PHP 8.1+. Available on WordPress.org since 2024. Last updated 1 year ago — may have compatibility concerns.
Prevents loopback request errors in WordPress environments using Docker such as wp-env.
Replace requests to localhost with host.docker.internal, and if https, change to http and turn off sslverify.
There are no settings. Just enable this plugin.
| WordPress | 6.3+ requiredTested up to 6.5.8 |
| PHP | 8.1+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.