I'm just wondering, is using JavaScript to get an IP like described in How to get client's IP address using javascript only? just as accurate as using
$_SERVER['REMOTE_ADDR'];
in PHP or another server-side language? What is the different in how the information is extracted in each?
For some background information, I know that Google Analytics is JS code and supposedly I can filter out IPs in my GA dashboard and I'm wondering how that is done and if it's reliable.