Title: WP-ngrok
Author: Theme.id
Published: <strong>2020 年 12 月 3 日</strong>
Last modified: 2022 年 12 月 4 日

---

搜索插件

![](https://ps.w.org/wp-ngrok/assets/banner-772x250.jpg?rev=2430973)

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

![](https://ps.w.org/wp-ngrok/assets/icon.svg?rev=2430738)

# WP-ngrok

 作者：[Theme.id](https://profiles.wordpress.org/themeid/)

[下载](https://downloads.wordpress.org/plugin/wp-ngrok.zip)

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

 [支持](https://wordpress.org/support/plugin/wp-ngrok/)

## 描述

Expose a WordPress local web server to the internet ngrok allows you to expose a
web server running on your local machine to the internet.
 This plugin works by 
hooking to the start and end of the page creation and capturing it into an output
buffer, it then uses the URL from the database for a str_replace, stripping it out
before sending back out to the shutdown hook. This means that I can share either
the HTTP or HTTPS versions of the ngrok URLs.

### How To Use

### Step One: Install ngrok

Download and install ngrok here [https://ngrok.com/download](https://ngrok.com/download)

### Step Two: Install WP-NGROK

 1. Upload `wp-ngrok.zip` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. run command in your terminal
 4. ~/ngrok http -host-header=localdomain.test 8888
 5. 
    ### Step Three: Creating the localtunnel
    
 6. Send through the host name of the site that we use locally as well as the port 
    number and this will then direct the traffic to my local site. This works whether
    we had created it, or using something like MAMP Pro to set this up for me.
 7. ~/ngrok http -host-header=sitename.localhost 8888

Once ngrok is up and running I will be presented with the display that you can see
below

    ```
    Session Status                online
    Account                       Theme.id (Plan: Pro)
    Version                       2.3.35
    Region                        United States (us)
    Web Interface                 http://127.0.0.1:4040
    Forwarding                    http://yourapp.ngrok.io -> http://localhost:8888
    Forwarding                    https://yourapp.ngrok.io -> http://localhost:8888
    ```

#### Minimum Requirements

WordPress 5.0 or greater
 PHP version 5.6 or greater MySQL version 5.0 or greater

#### We recommend your host supports:

PHP version 7.0 or greater
 MySQL version 5.6 or greater WordPress Memory limit 
of 64 MB or greater (128 MB or higher is preferred)

### Please ask in WordPress Support

Please to ask about this plugin

## 屏幕截图

[⌊Demo WP-Ngrok⌉⌊Demo WP-Ngrok⌉[

Demo WP-Ngrok

## 安装

 1. Upload `wp-ngrok` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 评价

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

### 󠀁[Half works](https://wordpress.org/support/topic/half-works-8/)󠁿

 [t-rek](https://profiles.wordpress.org/thebidetshop/) 2023 年 2 月 20 日

Fixes required Doesn’t rewrite all URLs, my logo still links to my local site Rewrites
image urls, changed a thumb sized image to a large image.

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

## 贡献者及开发者

「WP-ngrok」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Theme.id ](https://profiles.wordpress.org/themeid/)
 *   [ Hadie Danker ](https://profiles.wordpress.org/hadie-danker/)

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

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.1.2**
 *  最后更新：**4 年前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.1.10**
 *  PHP 版本 ** 8.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-ngrok/)
 * 标签
 * [debug](https://cn.wordpress.org/plugins/tags/debug/)[development](https://cn.wordpress.org/plugins/tags/development/)
   [localhost](https://cn.wordpress.org/plugins/tags/localhost/)[ngrok](https://cn.wordpress.org/plugins/tags/ngrok/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-ngrok/advanced/)

## 评级

 3 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/wp-ngrok/reviews/#new-post)

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

## 贡献者

 *   [ Theme.id ](https://profiles.wordpress.org/themeid/)
 *   [ Hadie Danker ](https://profiles.wordpress.org/hadie-danker/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/wp-ngrok/)