Home Tutorial Php Examples PHP Get Browser IP Address

 
 

PHP Get Browser IP Address
Posted on: October 9, 2009 at 12:00 AM
PHP Get Browser IP Address has an example to show you how to get or detect IP address of your system.

PHP Get Browser IP Address

PHP provides us  $_SERVER['REMOTE_ADDR'] function is used to display the Browser IP address

PHP Get IP Address Code:

<?php

echo "My Browser IP is :". $_SERVER['REMOTE_ADDR'];

?>

Output:

My Browser IP is :127.0.0.1

Related Tags for PHP Get Browser IP Address:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.