To Get And Show The Ip Address Via Javascript- PHP-ASP

/
/
312 Views

To Get And Show The Ip Address Via Javascript- PHP

 

get-ip-address-using-code-php-javascript

Here are code for get ip address in some language code

JavaScript Code

var ip= ‘<!–#echo var=”REMOTE_ADDR”–>’;
document.write(“Your IP Address is :”+ip+” “);
ASP Code

request.ServerVariables(“REMOTE_ADDR”)
 PHP Code

<?
$remote_address = getenv(“REMOTE_ADDR”);
echo “Your IP address is $remote_address.”;
$browser_type = getenv(“HTTP_USER_AGENT”);
echo “You are using $browser_type.”;
?>

Sign up for our newsletter to get Daily Updates

It is main inner container footer text