Title: IPv6 API Error
Last modified: September 10, 2022

---

# IPv6 API Error

 *  Resolved [punx47](https://wordpress.org/support/users/punx47/)
 * (@punx47)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/ipv6-api-error/)
 * When trying to connect the plugin via to the Google API I receive this error:
 *     ```
       {
           "error_message": "This IP, site or mobile application is not authorized to use this API key. Request received from IP address fda3:e722:ac3:10:71:64f5:a80:5a, with referer: https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJH3faYpQ56IkR2Ms_RgJuJe4&fields=opening_hours%2Cname%2Curl%2Cbusiness_status&key=AIzaSyAf1Kr_O1bk6oScIvqJ15hq0n4EpwE0j9Y&language=en",
           "html_attributions": [],
           "status": "REQUEST_DENIED"
       }
       ```
   
 * The plugin instructs to use the IPv4 but the error shows IPv6. Like the previous
   thread regarding this error, I placed the IPv6 from the error into the restricted
   list, but no change. The list currently has both IPv4 and IPv6 listed. Any ideas
   on how to debug?

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

 *  Plugin Author [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * (@designextreme)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/ipv6-api-error/#post-15997400)
 * [@punx47](https://wordpress.org/support/users/punx47/) The plugin is making its
   best guess as to which IP to use.
 * Please change your IP in the API Key Restrictions to: `fda3:e722:ac3:10:71:64f5:
   a80:5a`
 * There is never a 100% accurate way to deduce the IP for the server because it
   could be either IPv4 and/or IPv6. Here the Google API expects IPv6.
 * I may alter the IP functionality in the future to include both IPv4 and IPv6 
   rather than just one.
 *  Thread Starter [punx47](https://wordpress.org/support/users/punx47/)
 * (@punx47)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/ipv6-api-error/#post-15997449)
 * I removed the IPv4 restriction and retained the IPv6 restriction (so the only
   restriction is the IPv6) and still the same error.
 * I tried making the key completely unrestricted and received the same error. Which
   baffles me.
 *  Plugin Author [Noah Hearle](https://wordpress.org/support/users/designextreme/)
 * (@designextreme)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/ipv6-api-error/#post-15997467)
 * [@punx47](https://wordpress.org/support/users/punx47/) Check Places API is set
   as a restriction and then clear the plugin’s cache.
 *  Thread Starter [punx47](https://wordpress.org/support/users/punx47/)
 * (@punx47)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/ipv6-api-error/#post-15997509)
 * I believe clearing the cache fixed it! Thank You!

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

The topic ‘IPv6 API Error’ is closed to new replies.

 * ![](https://ps.w.org/opening-hours/assets/icon.svg?rev=2706372)
 * [We’re Open!](https://wordpress.org/plugins/opening-hours/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/opening-hours/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/opening-hours/)
 * [Active Topics](https://wordpress.org/support/plugin/opening-hours/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/opening-hours/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/opening-hours/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [punx47](https://wordpress.org/support/users/punx47/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/ipv6-api-error/#post-15997509)
 * Status: resolved