Page 1 of 1
All users have the same IP address
Posted:
August 23rd, 2011, 4:28 pm
by bethperkins
Can someone tell me why all the my registered users have the same IP address? I looked it up and it is the IP Address of my hosting account (Network Solutions).
How do I change the system to record the IP address of my customer?
Thanks,
Beth
Re: All users have the same IP address
Posted:
August 23rd, 2011, 10:25 pm
by Cristián Lávaque
Hi Beth. Thanks for reporting this, I'll email Jason about it.
In the meantime, could you please post a list of the plugins you have installed together with s2Member?
Re: All users have the same IP address
Posted:
August 24th, 2011, 1:30 pm
by bethperkins
Thank you Cristian. These are my plugins: AddToAny, Akismet, All in One SEO, Contact Form 7, Customized recent comments, Dagon Sitemap, Generate post thumbnails, health check, PHP execution, quick cache, regenerate thumbnails, Shadowbox JS, Shortcodes Pro, Snapshot backup, WP Importer, WP cleanup, WP Show IDS
Re: All users have the same IP address
Posted:
August 25th, 2011, 1:57 am
by Cristián Lávaque
Thank you! I'll wait for Jason now.
Re: All users have the same IP address
Posted:
August 26th, 2011, 12:23 pm
by bethperkins
I'd appreciate any info on this because we are trying to confirm that our free trial users are not rebooking free trials - without a valid IP address this is tough
Re: All users have the same IP address
Posted:
August 27th, 2011, 1:08 am
by Cristián Lávaque
Are you using the button's shortcode or full code? Could you post it here?
Re: All users have the same IP address
Posted:
August 27th, 2011, 9:22 am
by bethperkins
Here is my code. Do I need to do anything special to get the IP address?
- Code: Select all
[s2Member-Pro-AuthNet-Form level="1" ccaps="" desc=" " cc="USD" custom="www.action-intell.com" ta="0" tp="0" tt="D" ra="239" rp="1" rt="Y" rr="0" accept="visa,mastercard,amex,discover" coupon="" accept_coupons="0" default_country_code="US" captcha="0" /]
Re: All users have the same IP address
Posted:
August 27th, 2011, 2:36 pm
by Jason Caldwell
Thanks for the heads up on this thread.
Beth, who is your hosting provider? s2Member and WordPress both pull the User's IP address from the environment variable provided by your hosting company: $_SERVER["REMOTE_ADDR"]. If this is being populated with the same value for every User, you might need to ask your hosting company what can be done to avoid and/or work around this.
Re: All users have the same IP address
Posted:
August 27th, 2011, 5:54 pm
by Cristián Lávaque
Beth, I asked about the code for the button because s2Member started collecting IPs only recently and if you were using an older full code it may have been missing the lines that did it. But you're using the shortcode, so the updated s2Member will add the needed lines when it parses the code, so you're good there. You should check with your hosting company now, as Jason explained.
Re: All users have the same IP address
Posted:
September 1st, 2011, 10:52 am
by bethperkins
I'm sure that this is the issue because Network Solutions is my hosting company. I'm moving the website in the next few weeks. In the meantime I heard that the client's address should be contained in $_SERVER["HTTP_X_FORWARDED_FOR"]. Would it be possible to retrieve this?
Re: All users have the same IP address
Posted:
September 1st, 2011, 11:33 am
by Jason Caldwell
Hi Beth. Please see this post for an easy solution:
viewtopic.php?t=6380&p=14618#p14618