Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of Handy

Handy

Handy has asked 2 questions and find answers to 0 problems.

Stats

10
EtPoint
0
Vote count
2
questions
0
answers

About

... 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?