Title: localhost2host.docker.internal
Author: enomoto celtislab
Published: <strong>juin 24, 2024</strong>
Last modified: juin 24, 2024

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/localhost2host-docker-internal.svg)

# localhost2host.docker.internal

 By [enomoto celtislab](https://profiles.wordpress.org/enomoto-celtislab/)

[Download](https://downloads.wordpress.org/plugin/localhost2host-docker-internal.0.4.0.zip)

 * [Details](https://tah.wordpress.org/plugins/localhost2host-docker-internal/#description)
 * [Reviews](https://tah.wordpress.org/plugins/localhost2host-docker-internal/#reviews)
 *  [Installation](https://tah.wordpress.org/plugins/localhost2host-docker-internal/#installation)
 * [Development](https://tah.wordpress.org/plugins/localhost2host-docker-internal/#developers)

 [Support](https://wordpress.org/support/plugin/localhost2host-docker-internal/)

## Description

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.

## Installation

 1. Upload the `localhost2host-docker-internal` folder to the `/wp-content/plugins/`
    directory.
 2. Activate the plugin through the `Plugins` menu in WordPress

## Reviews

![](https://secure.gravatar.com/avatar/bce40e97210b52eae7cd03c41e160d2e971fedea0dc4264f1d2da077ac3e9a96?
s=60&d=retro&r=g)

### 󠀁[Simple and best solution in wordpress/env(wp-env) development](https://wordpress.org/support/topic/simple-and-best-solution-in-wordpress-envwp-env-development/)󠁿

 [Fumiki Takahashi](https://profiles.wordpress.org/takahashi_fumiki/) juillet 10,
2025

If you have troubles in local development with wp-env, use this plugin. In your .
wp-env.json , add this plugin’s download URL(NOTICE: review comment is not allowed
to include URL, add https +:// just before the downloads.wordpress.org { « plugins»:[«.»,«[
schema here]downloads.wordpress.org/plugin/localhost2host-docker-internal.latest-
stable.zip » ]} WordPress’ self remote request(e.g. WP-Cron) starts working as expected!
Arigato!

 [ Read all 0 reviews ](https://wordpress.org/support/plugin/localhost2host-docker-internal/reviews/)

## Contributors & Developers

“localhost2host.docker.internal” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ enomoto celtislab ](https://profiles.wordpress.org/enomoto-celtislab/)

[Translate “localhost2host.docker.internal” into your language.](https://translate.wordpress.org/projects/wp-plugins/localhost2host-docker-internal)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/localhost2host-docker-internal/),
check out the [SVN repository](https://plugins.svn.wordpress.org/localhost2host-docker-internal/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/localhost2host-docker-internal/)
by [RSS](https://plugins.trac.wordpress.org/log/localhost2host-docker-internal/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **0.4.0**
 *  Last updated **2 années ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.3 or higher **
 *  Tested up to **6.5.8**
 *  PHP version ** 8.1 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/localhost2host-docker-internal/)
 * Tags
 * [localhost](https://tah.wordpress.org/plugins/tags/localhost/)[site health](https://tah.wordpress.org/plugins/tags/site-health/)
 *  [Advanced View](https://tah.wordpress.org/plugins/localhost2host-docker-internal/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/localhost2host-docker-internal/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/localhost2host-docker-internal/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/localhost2host-docker-internal/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/localhost2host-docker-internal/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/localhost2host-docker-internal/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/localhost2host-docker-internal/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/localhost2host-docker-internal/reviews/)

## Contributors

 *   [ enomoto celtislab ](https://profiles.wordpress.org/enomoto-celtislab/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/localhost2host-docker-internal/)