How to find the user IP address using php

3
This code will shows your remote site IP Address to the user who visited to your site. To find the client ip address you can use the $_SERVER[‘REMOTE_ADDR’]; php code to view your client ip address. Using this ip address you can able to track your website.

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

 

Leave a Reply

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

Close
Your custom text © Copyright 2026. All rights reserved.
Close