• Resolved mary.a.s

    (@maryas)


    Hello, and thanks in advance for your help. My client has a dedicated IP address for her WordPress site. The DNS for my client’s domain is in no way whatsoever associated with this IP address/hosting account/WordPress installation yet, and it needs to stay that way for awhile, during development, so her current site on her current host can stay live. When I try to create a new Google Client ID, I enter http://[the IP address] and then the authorized redirect uri (copied from the plugin settings), but Google won’t accept it: there is a really, really quick error message that flashes on the screen, that seems to say something about an invalid uri. Do you have any suggestions for handling this situation? The fact that the site is operating on a dedicated IP address is the very reason the client needs to configure SMTP, to use a gmail account for now. Again, thanks so much.

    https://wordpress.org/plugins/postman-smtp/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jason Hendriks

    (@jasonhendriks)

    Google is not going to let you create a Client ID on an IP address. It would be impossible to reliably redirect back to your site, given that a single IP can represent many different virtual hosts.

    But I can think of a couple ways to make it work.

    1-A: DNS
    The first, assuming this IP address is Internet-facing, is to give this IP address a real name. Surely as a developer you have one or two domains under your control. Simply add an A sub-domain record in your name server’s zone file, pointing it to the IP address of your site. Now you have a real, temporary domain name you can use with any Internet app, not just Google.

    jasonhendriks.com.    IN      SOA
    test   IN  A      10.0.0.1

    (Keep in mind DNS changes can take up to 48 hours to travel through the Internet.)

    1-B: /etc/hosts
    The second way, which works for a private IP that’s NOT on the Internet, is to add the fake name on your own computer. This is the method I use to develop the plugin on my Mac.

    Just edit your /etc/hosts to include a fake domain name:

    10.0.0.1	test.jasonhendriks.com

    2: Configure WordPress
    Both of these methods require that you also change your WordPress config:

    WordPress -> Settings -> General -> WordPress Address (URL) :
    http://test.jasonhendriks.com/~jasonhendriks/wordpress
    
    WordPress -> Settings -> General -> Site Address (URL) :
    http://test.jasonhendriks.com/~jasonhendriks/wordpress

    Now the plugin can generate real Redirect URI‘s to submit to Google. Doesn’t matter that they’re fake. Hope that helps.

    Please rate it if you like it!! Or if you don’t! 🙂

    Jason

    Thread Starter mary.a.s

    (@maryas)

    Thanks for those excellent suggestions, Jason, and for being willing to help with an issue that is technically a Google issue and not an issue with your plugin. I’ll consider these, and give it a try. Please feel free to mark this as resolved.

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    Did you get this to work Mary?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can't create Client ID for dedicated IP address’ is closed to new replies.