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

471

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.”;
?>

keyboard_arrow_up