How to find the user IP address using php | Sanwebcorner

How to find the user IP address using php

This code will shows your remote site IP Address to the user who visited to your site.


<html>
<head>
<title>How to get IP ADDRESS using PHP</title>
</head>
<body>
<?php
Echo'Your IP Address is :';
Echo $_SERVER['REMOTE_ADDR'] ;
?>
</body>
</html>


---------------------------------------------------------------------------------------------------------------------