getRealIp
The getRealIp Function is used for retrieving the "Real" IP Address of a veiwer. This is automatically run on each Jamroom script call and stored as $jamroom['ip_address'], so there's really never a need to call this function - simply reference the variable instead. This function checks the following $_SERVER fields:
- REMOTE_ADDR
- HTTP_X_FORWARDED_FOR
- HTTP_X_FORWARDED
- HTTP_FORWARDED_FOR
- HTTP_FORWARDED
- HTTP_VIA
- HTTP_X_COMING_FROM
- HTTP_COMING_FROM
- HTTP_CLIENT_IP
string
getRealIp
()
|