check user IP Address easily with simple php code

By | January 21, 2015

check user IP Address easily,Track any ip address,How Someone Can Get Your IP Address, check user IP Address with  php,How to lookup a user name and machine name using an IP address

How to check user IP Address easily

Hello Friends today we talk about How to you easily get IP address. and you easily 

identify your users.
and you attach only this php code

Email Address Validation in php


check user IP Address

if (!empty($_SERVER[‘HTTP_CLIENT_IP’])) { $ip=$_SERVER[‘HTTP_CLIENT_IP’]; } 

elseif (!empty($_SERVER[‘HTTP_X_FORWARDED_FOR’])) {

 $ip=$_SERVER[‘HTTP_X_FORWARDED_FOR’]; } else {


on your function. php / session.php

and where you want.

after put this code you also store this ip on your database for record.

use insert query of php easily do this.

and you have any question about this code comment here.

check your ip and geolocation


Category: PHP

Leave a Reply

Your email address will not be published. Required fields are marked *