I have seen this page and plenty others, but all propose solution not suitable for me. I have same problem that the one in link I provided.
I am trying to use Google+ API functions, so users can log in to my page with Google account.
When I had redirect_uri to localhost:
$client->setRedirectUri("https://localhost/...");
everything worked. But then I changed it to local ip 192.168.1.10 and get error (on url https://accounts.google.com/o/oauth2/auth?response_type=code&redirect_uri=https%3A%2F%2F192.168.1.10.......)
- That’s an error.
Error: invalid_request
device_id and device_name are required for private IP:
I don't know what should I do. I use PHP server wrappers. I can not change etc/hosts because I am also trying my code on mobile (Android, IPAD). So, local IP is necessary, to test it on Mobile. I want to avoid setting up a test page on some real server, because testing web page on localhost is the fastest way, when still developing the page.