I am creating a project. Now I want the IP address of the guest who are unauthorized person.
Asked
Active
Viewed 78 times
-8
-
5Yes https://www.google.com/search?q=php+get+ip+address – Mario Radomanana Feb 04 '14 at 08:51
-
try this: $_SERVER['SERVER_ADDR']. Check this: http://in3.php.net/manual/en/reserved.variables.server.php – Suresh Kamrushi Feb 04 '14 at 08:52
-
possible duplicate of [How to get Client IP address in PHP?](http://stackoverflow.com/questions/3003145/how-to-get-client-ip-address-in-php) – Shankar Narayana Damodaran Feb 04 '14 at 08:53
2 Answers
2
try this one $_SERVER['REMOTE_ADDR']
you can also check here for more info How to get the client IP address in PHP?