Very easy:
This is the PHP code:
<?php
// Get the user's IP address
$userIp = $_SERVER['REMOTE_ADDR'];
// Print the IP address on the page
echo "Your IP address is: " . $userIp;
?>
This is the PHP code:
<?php
// Get the user's IP address
$userIp = $_SERVER['REMOTE_ADDR'];
// Print the IP address on the page
echo "Your IP address is: " . $userIp;
?>