• Resolved Feznizzle

    (@feznizzle)


    Hi,

    So I found the instructions for capturing my visitor’s IP address here:
    https://kb.mc4wp.com/using-variables-in-your-form-or-messages/

    It was very simple to implement, just by adding this to my form:
    {ip}

    As soon as I updated, I tested it by signing up. It worked perfectly, capturing my IP and sending it to MailChimp.

    But today I noticed that 5 new subscribers had come in overnight… all with the same IP. As it turns out, the IP given was the IP of my server.

    So I went and tested again, and it captured my correct IP. But then I logged out of WP and signed up again. Sure enough, the IP given to MailChimp was my server… not my the IP of my location.

    Is there a work around for this problem?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey feznizzle,

    That seems strange. Can you please let us know if you are using the premium version of our plugin or just the free one? Also, are you using any proxy service or DNS caching such as CloudFlare?

    Thread Starter Feznizzle

    (@feznizzle)

    It’s my understanding that {ip} also works with the free version of this plugin. And if the issue was related to DNS caching, I’d have the same problem regardless of whether or not I was logged in… right?

    I am using a caching plugin, but it does not serve cache if I’m logged in. Could that be the issue?

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey feznizzle,

    Yes, IP address works with free plugin too. If this issue is caused by caching plugins, then disabling the plugin and testing might help us rule out an issue with it.

    You are right about the DNS cache, it would affect all. However, I have seen issues related to CloudFlare in the past, where if the admin’s IP was added to CloudFlare and they were bypassed and served the site without proxy but not the general users.

    For now, I would suggest disabling the caching plugin and testing again. Let us know what you find.

    Thread Starter Feznizzle

    (@feznizzle)

    Hi Harish,

    It was indeed WP Fastest Cache that was causing the problem for me. When disabled, your plugin was able to capture the signup IP, regardless of wether or not I was logged in.

    But… I’m pretty bummed about not being able to use that caching plugin. I guess it didn’t do much, other than consolidating js/css.

    Anyway, HUGE HUGE thanks for you help!

    Plugin Contributor Lap

    (@lapzor)

    ?Thanks for letting us know! Glad that helped.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Visitor’s IP Address only captured if logged in’ is closed to new replies.