Well, the problem is with the IP address restrictions in Google Developer console, that’s clear. Does “2a01:4f8:190:2221::2” look familiar, does that match your IPv6-address?
If not immediately clear, I would try to remove any IP-address restrictions in Google’s developer console, as that will likely solve the problem. Once that works you can always fiddle, adding/ changing IP-address-restrictions?
frank
Interesting, I thought I have to enter IP addresses – the dialog looks like it or it is pushing me very hard to enter IP addresses.
For the first site I was able to get a positive test result right away by removing all entered IP addresses. For the second site not…
Checking your key ...
API key not OK, your key seems to be valid, but restricted to an IP-address which is not your server's.Try changing the allowed IP for your API key to include this one: 5.9.143.45
This time the IPv4 address is shown, strange! More strange that now I see on the Google website that all IPs are allowed.
Hm…?
BTW: I think restricting IP addresses is a bit too much for most installations as there is the API key. If the key is not leaked, it does not make any sense to restrict IP addresses.
PS: Yes, this is my real IPv6 (and also IPv4) address. I did enter it like it is – also the examples which Google shows let me think that I entered it exactly as Google wants it.
PPS: Caching problem at Google. It works also for the second site. Strange that it worked after 2 seconds on the first but needed 5 minutes or longer for the second site.
I will stick with no IP restrictions, see above. Does not make much sense (for me). But something is not working as it should.
yeah, the blackbox that is google … ip-restrictions indeed seem to be encouraged, but I had problems with them as well while testing. provided you don’t share the API-key and/or the project the api key is for is restricted to the YouTube API, there really is nothing to worry about.
frank
FYI: I changed the FAQ accordingly, ip-restrictions indeed are a potential dealbreaker.
frank
That’s great, thank you! The IP address thing really was a show stopper here. No idea why it is not working what I entered on the google page.