Title: localhost2host.docker.internal
Author: enomoto celtislab
Published: <strong>2024 年 6 月 24 日</strong>
Last modified: 2024 年 6 月 24 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# localhost2host.docker.internal

 作者：[enomoto celtislab](https://profiles.wordpress.org/enomoto-celtislab/)

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

 * [详情](https://cn.wordpress.org/plugins/localhost2host-docker-internal/#description)
 * [评价](https://cn.wordpress.org/plugins/localhost2host-docker-internal/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/localhost2host-docker-internal/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/localhost2host-docker-internal/#developers)

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

## 描述

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.

## 安装

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

## 评价

![](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/) 2025 年 7 
月 10 日

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!

 [ 阅读所有0条评价 ](https://wordpress.org/support/plugin/localhost2host-docker-internal/reviews/)

## 贡献者及开发者

「localhost2host.docker.internal」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「localhost2host.docker.internal」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/localhost2host-docker-internal)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/localhost2host-docker-internal/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/localhost2host-docker-internal/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/localhost2host-docker-internal/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/localhost2host-docker-internal/)。

## 额外信息

 *  版本 **0.4.0**
 *  最后更新：**2 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.3 或更高版本 **
 *  已测试的最高版本为 **6.5.8**
 *  PHP 版本 ** 8.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/localhost2host-docker-internal/)
 * 标签
 * [localhost](https://cn.wordpress.org/plugins/tags/localhost/)[site health](https://cn.wordpress.org/plugins/tags/site-health/)
 *  [高级视图](https://cn.wordpress.org/plugins/localhost2host-docker-internal/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

[查看全部评论](https://wordpress.org/support/plugin/localhost2host-docker-internal/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/localhost2host-docker-internal/)