Title: [Plugin: Jetpack by WordPress.com] Local testing version
Last modified: August 20, 2016

---

# [Plugin: Jetpack by WordPress.com] Local testing version

 *  Resolved [jfrankli](https://wordpress.org/support/users/jfrankli/)
 * (@jfrankli)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/)
 * Is there a way to activate the JetPack plugin on my locally running copy of WordPress
   on my MacBook? I saw a message that said “site_inaccessible”. Error Details: 
   The Jetpack server was unable to communicate with your site [IXR -32300: transport
   error: http_request_failed Couldn’t resolve host ‘wptest’]
 * Is there a way to make this work in my local development environment? The web
   site that I run is only locally accessible on my Mac.
 * [http://wordpress.org/extend/plugins/jetpack/](http://wordpress.org/extend/plugins/jetpack/)

Viewing 15 replies - 16 through 30 (of 35 total)

[←](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/?output_format=md)
2 [3](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/3/?output_format=md)

 *  [msenate](https://wordpress.org/support/users/msenate/)
 * (@msenate)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/2/#post-2840808)
 * Though I agree this thread should not be resolved, and the hack above is not 
   the desired functionality…
 * I Turned those changes into a simplified patch I’m employing:
 *     ```
       Index: jetpack/jetpack.php
       ===================================================================
       --- jetpack/jetpack.php (revision 3732)
       +++ jetpack/jetpack.php (working copy)
       @@ -272,7 +272,7 @@
                * Is Jetpack active?
                */
               function is_active() {
       -               return (bool) Jetpack_Data::get_access_token( JETPACK_MASTER_USER );
       +               return true; // return (bool) Jetpack_Data::get_access_token( JETPACK_MASTER_USER );
               }
   
               /**
       @@ -2211,7 +2211,7 @@
                       $role = $this->translate_current_user_to_role();
                       $is_connected = Jetpack::is_active();
                       $user_token = Jetpack_Data::get_access_token($current_user->ID);
       -               $is_user_connected = $user_token && !is_wp_error($user_token);
       +               $is_user_connected = true; // $user_token && !is_wp_error($user_token);
                       $is_master_user = $current_user->ID == Jetpack::get_option( 'master_user' );
                       $module = false;
               ?>
       ```
   
 * To apply the patch use, save the snippet above as jetpack_localhost.diff then
   issue this command:
 *     ```
       patch -p0 -i ~/jetpack_localhost.diff
       ```
   
 *  [davebowker](https://wordpress.org/support/users/davebowker/)
 * (@davebowker)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/2/#post-2840809)
 * +1
 *  [Beren](https://wordpress.org/support/users/berenerchamion/)
 * (@berenerchamion)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/2/#post-2840815)
 * +1 for local development.
 *  Plugin Contributor [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/2/#post-2840816)
 * +1.
 * I’m trying to debug [a conflict between Jetpack and one of my plugins](http://wordpress.org/support/topic/incompatibility-between-bgmp-193-rc1-and-jetpack-204?replies=2),
   and it’s a pain in the ass because I can’t step through the code with a real 
   debugger.
 * The hack from WPSE gets rid of the warnings, but doesn’t seem to make Jetpack
   run exactly the same way that it does when it’s actually connected to WordPress.
   com. Individual modules may also need to be hacked, like `force_user_connection()`
   in `publicize/publicize-jetpack.php`.
 * I think there should be a filter that devs can set in order to make Jetpack behave
   exactly as if it’s fully connected, including all the modules. e.g.,
 *     ```
       add_filter( 'jetpack_imitate_connected', '__return_true' );
       ```
   
 *  [andrewayala](https://wordpress.org/support/users/andrewayala/)
 * (@andrewayala)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/2/#post-2840817)
 * +1
 *  [abdusm](https://wordpress.org/support/users/abdusm/)
 * (@abdusm)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/2/#post-2840818)
 * +1 | need it for local website building on bitnami wordpress
 *  [Adriasil](https://wordpress.org/support/users/adriasil/)
 * (@adriasil)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/2/#post-2840819)
 * Would really love a local version to test with.
 * Having all of those features available on my site online is brilliant, but there
   is a major inconvenience if you want to use anything from Jetpack to feature 
   in a theme that’s currently in development.
 *  [Jon Brown](https://wordpress.org/support/users/jb510/)
 * (@jb510)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/2/#post-2840820)
 * +1
 * Who marked this as resolved?
 *  [jdran](https://wordpress.org/support/users/yannisdran/)
 * (@yannisdran)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/2/#post-2840821)
 * +1 from me..
    Local development is really important, I wonder why there is still
   no pure solution for this. The hack is a temp solution, but Jetpack developers
   should have given/suggested such a similar trick to us until a stable one is 
   out… Instead, we have to look out for what other folks have to suggest..
 *  [g30rd13](https://wordpress.org/support/users/g30rd13/)
 * (@g30rd13)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/2/#post-2840823)
 * Not sure if this is too late for many of you folk but after much the same frustration
   I came across this today…
 * [http://www.wordimpressed.com/plugins/how-to-use-wordpress-jetpack-for-local-development/](http://www.wordimpressed.com/plugins/how-to-use-wordpress-jetpack-for-local-development/)
 * I haven’t needed to test all the modules but it does work on two or three I do
   need.
    That said I’m having trouble serving up images to my ‘Tiled Gallery’ module…
   perhaps something to do with the required ‘extra-special processing’ ?
 *  [Shovan](https://wordpress.org/support/users/thescube/)
 * (@thescube)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/2/#post-2840825)
 * +1
 *  [aah08b](https://wordpress.org/support/users/aah08b/)
 * (@aah08b)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/2/#post-2840826)
 * +1
    This would be very helpful for testing.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/2/#post-2840827)
 * Jetpack 2.2 cannot be used in a local environment yet, but we worked on this 
   feature, and it will be available in the next Jetpack release.
 * You can already test it by installing the development version of Jetpack, available
   here:
    [http://wordpress.org/extend/plugins/jetpack/developers/](http://wordpress.org/extend/plugins/jetpack/developers/)
 * You can find out more about the new development mode here:
    [http://plugins.trac.wordpress.org/changeset/674577](http://plugins.trac.wordpress.org/changeset/674577)
   [http://plugins.trac.wordpress.org/changeset/676269](http://plugins.trac.wordpress.org/changeset/676269)
 *  [pacovalverde](https://wordpress.org/support/users/pacovalverde/)
 * (@pacovalverde)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/2/#post-2840828)
 * +1 … me too… go local!!!!
 *  [pjv](https://wordpress.org/support/users/pjv/)
 * (@pjv)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/2/#post-2840829)
 * i’m running the the dev version now with
    `define ('JETPACK_DEV_DEBUG', true);`
   in my wp-config, and so-far so-great.
 * thanks for addressing this pressing need.

Viewing 15 replies - 16 through 30 (of 35 total)

[←](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/?output_format=md)
2 [3](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/3/?output_format=md)

The topic ‘[Plugin: Jetpack by WordPress.com] Local testing version’ is closed to
new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [installation](https://wordpress.org/support/topic-tag/installation/)
 * [set-up](https://wordpress.org/support/topic-tag/set-up/)
 * [settings](https://wordpress.org/support/topic-tag/settings/)

 * 35 replies
 * 30 participants
 * Last reply from: [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-local-testing-version/page/3/#post-2840836)
 * Status: resolved