<!doctype html>
<html>
<head>
<title>IP Address</title>
</head>
<body>
<?php
$ip_address = $_SERVER["REMOTE_ADDR"];
echo "Visitor's IP address is ".$ip_address;
?> </body>
</html>This code will display the IP address of the user.
