What is my IP address right now?
Sometimes, for some reason, you need to know what your IP address is.
IP addresses can be static or dynamic. A static IP address is the same all time.
A dynamic IP address changes by a DHCP server, and for this change there is no fixed time interval and it can happen tomorrow, in one month or in a year.
So what is your actual IP address? It is this one:
18.97.14.91
Are you interested what PHP code is used? Here is the snippet:
<?php
function getUserIP()
{
$client = @$_SERVER['HTTP_CLIENT_IP'];
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
$remote = $_SERVER['REMOTE_ADDR'];
if (filter_var($client, FILTER_VALIDATE_IP)) {
$ip = $client;
} elseif (filter_var($forward, FILTER_VALIDATE_IP)) {
$ip = $forward;
} else {
$ip = $remote;
}
return $ip;
}
$user_ip = getUserIP();
echo $user_ip;
?>