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

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://zh-hk.wordpress.org/plugins/localhost2host-docker-internal/#description)
 * [評價](https://zh-hk.wordpress.org/plugins/localhost2host-docker-internal/#reviews)
 *  [安裝](https://zh-hk.wordpress.org/plugins/localhost2host-docker-internal/#installation)
 * [開發](https://zh-hk.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/)。

## 其它

 *  Version **0.4.0**
 *  Last updated **2 年之前**
 *  Active installations **少於10**
 *  WordPress version ** 6.3 or higher **
 *  Tested up to **6.5.12**
 *  PHP version ** 8.1 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/localhost2host-docker-internal/)
 * Tags
 * [localhost](https://zh-hk.wordpress.org/plugins/tags/localhost/)[site health](https://zh-hk.wordpress.org/plugins/tags/site-health/)
 *  [進階顯示](https://zh-hk.wordpress.org/plugins/localhost2host-docker-internal/advanced/)

## 評分

 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)

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

[See all reviews](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/)