... as there are about 5 question/answers on SO that all have different variants? This is an information over load question. If someone can consolidate all the information into a single function that would be great.
A quick Google Search pulls up these top 5.
How to get Client IP address in PHP?
How can I get the MAC and the IP address of a connected client in PHP?
How do I find a user's IP address with PHP?
definitive way to get user ip address php
Function to get user ip address
What is the most accurate way to retrieve a user's correct IP address in PHP?
The last post seems to have the most information. However all seem to contain:
$_SERVER['REMOTE_ADDR']
as the most basic way to do it?