Skip to content

Instantly share code, notes, and snippets.

View mswarrior's full-sized avatar

Aris Ordonez mswarrior

View GitHub Profile
@mswarrior
mswarrior / ngrok-and-jetpack.md
Created February 7, 2023 07:57 — forked from mjangda/ngrok-and-jetpack.md
How to connect ngrok to your local WordPress environment (props @DanReyLop)

How to develop with Jetpack locally with ngrok

To connect Jetpack in your local installation, you'll need a way for WP.com servers to reach your server. That can be done in a number of different ways:

  • You can open your router's ports and use your public IP
  • You can use some kind of Dynamic DNS provider.

But these options fall short of ngrok, which is a "localhost tunnel". It basically allows the Internet to hit a local port on your machine without worrying about ports or IPs.

As long as ngrok is running, Jetpack / WP.com will be able to communicate with your local site. This will allow remote modules like Site Search and Manage to work.

Keybase proof

I hereby claim:

  • I am mswarrior on github.
  • I am mswarrior (https://keybase.io/mswarrior) on keybase.
  • I have a public key ASC9mAG0LUUPNEXXcUZ__WrhrE524Yxa9ItT22vQcFsCRwo

To claim this, I am signing this object: