Title: Using Gcal v3 API on localhost
Last modified: August 22, 2016

---

# Using Gcal v3 API on localhost

 *  Resolved [jojaba](https://wordpress.org/support/users/jojaba/)
 * (@jojaba)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/)
 * Hello,
 * I would like to have the plugin work on my localhost installation.
    [mcdonna](http://www.donnamcmaster.com/)
   gaves a workaround on [this post](https://wordpress.org/support/topic/gce-210-now-updated-for-gcal-api-v3?replies=84#post-6239648).
   To have a look to this workaround here’s a summary (for windows users):
    - Edit the \Windows\System32\drivers\etc\hosts file (with notepad)
    - add this line: `192.168.x.x fakedomain.com` (where 192.168.x.x is your local
      IP, for me, it was 192.168.0.13)
    - Register the local IP with Google in their dev console.
 * I’m not sure I registered the local IP in the dev console the good way…
    I tried
   to create an api key by giving my local IP address in the [accepted requests field](http://wpdocs.philderksen.com/wp-content/uploads/2014/11/8.png)
   but this didn’t work (of course I used the newly generated api key in the plugin
   api key field before testing. What am I doing wrong? Is there another way to 
   make it work on localhost? The message that appears instead of the calendar:
 *     ```
       There are no HTTP transports available which can
       complete the requested request. Please ensure your
       feed URL is correct.
       No events to display.
       ```
   
 * [https://wordpress.org/plugins/google-calendar-events/](https://wordpress.org/plugins/google-calendar-events/)

Viewing 15 replies - 1 through 15 (of 15 total)

 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510033)
 * Have you tried entering 127.0.0.1 in the API settings field to see if that will
   allow your localhost?
 *  Thread Starter [jojaba](https://wordpress.org/support/users/jojaba/)
 * (@jojaba)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510035)
 * Yes I did it. No better result.
    Maybe I should ask on google calendar forums(
   I don’t know if they exist…)
 *  [aparente001](https://wordpress.org/support/users/aparente001/)
 * (@aparente001)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510037)
 * Could you try using the plugin’s default shared public API key?
 *  Thread Starter [jojaba](https://wordpress.org/support/users/jojaba/)
 * (@jojaba)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510039)
 * Just tried. didn’t work :/
 *  Thread Starter [jojaba](https://wordpress.org/support/users/jojaba/)
 * (@jojaba)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510047)
 * Hello,
 * Did you manage to get the plugin work on localhost?
    I tried to use my box IP
   in the dev console settings field, but this still didn’t work. Just to be sure
   I’m not going the wrong way: I can create multiple api key for a calendar and
   use them simultaneously, is that correct?
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510051)
 * Yes you are correct. DO you have curl installed on your local host?
 *  Thread Starter [jojaba](https://wordpress.org/support/users/jojaba/)
 * (@jojaba)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510052)
 * No the php extension curl is not activated.
 *  Thread Starter [jojaba](https://wordpress.org/support/users/jojaba/)
 * (@jojaba)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510054)
 * Is it possible that it comes from my hosts file?
    I paste here the content of
   the file I changed (the 4 lines, 1 commment and 3 local IP adresses:
 *     ```
       # Copyright (c) 1993-2009 Microsoft Corp.
       #
       # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
       #
       # This file contains the mappings of IP addresses to host names. Each
       # entry should be kept on an individual line. The IP address should
       # be placed in the first column followed by the corresponding host name.
       # The IP address and the host name should be separated by at least one
       # space.
       #
       # Additionally, comments (such as these) may be inserted on individual
       # lines or following the machine name denoted by a '#' symbol.
       #
       # For example:
       #
       #      102.54.94.97     rhino.acme.com          # source server
       #       38.25.63.10     x.acme.com              # x client host
       # For Google calendar on localhost
              192.168.0.13     test.com
              192.168.1.23     test.com
              192.168.1.10     test.com 
   
       # localhost name resolution is handled within DNS itself.
              127.0.0.1       localhost
              ::1             localhost
       ```
   
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510061)
 * [@jojaba](https://wordpress.org/support/users/jojaba/),
 * I read somewhere (sorry no source :/ ) that it could be an issue with curl not
   being on. I would try turning the curl extension on and see if that helps.
 *  Thread Starter [jojaba](https://wordpress.org/support/users/jojaba/)
 * (@jojaba)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510062)
 * I already try it out with curl turned on, but this didn’t help either.
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510074)
 * Did you ever get this working? I think it might just be an issue with Google 
   not allowing connections from localhost IPs. What have you found?
 *  Thread Starter [jojaba](https://wordpress.org/support/users/jojaba/)
 * (@jojaba)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510077)
 * No it doesn’t work for the moment. Yes, it comes from the Google not allowing
   connections from localhost and Donna gave some links on her post to fix this :
   [https://wordpress.org/support/topic/gce-210-now-updated-for-gcal-api-v3?replies=84#post-6239648](https://wordpress.org/support/topic/gce-210-now-updated-for-gcal-api-v3?replies=84#post-6239648)
 * But this didn’t work for me…
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510080)
 * Alright thanks for letting me know. I am going to mark this resolved then since
   it seems more of an issue with Google and not this plugin.
 * Thanks!
 *  Thread Starter [jojaba](https://wordpress.org/support/users/jojaba/)
 * (@jojaba)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510111)
 * I finally managed to get it work on my local installation by using virtual hosts
   on wamp. This way, you don’t have an address like this `http://localhost/domain`
   but something like this `http://domain`.
    How to create virtualhosts on wampserver
   2.5: [http://forum.wampserver.com/read.php?2,127757](http://forum.wampserver.com/read.php?2,127757)
   I hope this can be helpfull 😉
 *  Plugin Contributor [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * (@nickyoung87)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510112)
 * Thanks for posting this for others to see 🙂

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Using Gcal v3 API on localhost’ is closed to new replies.

 * ![](https://ps.w.org/google-calendar-events/assets/icon-256x256.png?rev=1263960)
 * [Simple Calendar - Google Calendar Plugin](https://wordpress.org/plugins/google-calendar-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-calendar-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-calendar-events/)
 * [Active Topics](https://wordpress.org/support/plugin/google-calendar-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-calendar-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-calendar-events/reviews/)

 * 15 replies
 * 3 participants
 * Last reply from: [Nick Young](https://wordpress.org/support/users/nickyoung87/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/using-gcal-v3-api-on-localhost/#post-5510112)
 * Status: resolved