CHttpRequest::getUserHostAddress();
Page 1 of 1
User's Ip Address
#1
Posted 13 March 2013 - 04:01 AM
Retrieving User's IP address
Thanks
Nisanth Thulasi
Nisanth Thulasi
#2
Posted 13 March 2013 - 04:13 AM
This will give you highly inaccurate results for lots of users that are using VPN's, company's proxy/firewall and more... .
I've written back then an extension that includes a handy method that gives more accurate results back. If you're interested, check out PcMaxmindGeoIp extension and in specific, the method getRemoteIpAddress() provided by it.
I've written back then an extension that includes a handy method that gives more accurate results back. If you're interested, check out PcMaxmindGeoIp extension and in specific, the method getRemoteIpAddress() provided by it.
Therapeutic PHP sessions My LinkedIn Profile
Share this topic:
Page 1 of 1

Help













