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://tw.wordpress.org/plugins/localhost2host-docker-internal/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/localhost2host-docker-internal/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/localhost2host-docker-internal/#installation)
 * [開發資訊](https://tw.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 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.5.8**
 *  PHP 版本需求 ** 8.1 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/localhost2host-docker-internal/)
 * 標籤:
 * [localhost](https://tw.wordpress.org/plugins/tags/localhost/)[site health](https://tw.wordpress.org/plugins/tags/site-health/)
 *  [進階檢視](https://tw.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/)