IP Address Syntax in Web Page

To Get And Show The Ip Via Javascript

To show the ip via JavaScript


var ip= '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP Address is :"+ip+" ");
________________________________________________________________________________
__________________
To show IP via ASP


request.ServerVariables("REMOTE_ADDR")
________________________________________________________________________________
__________________
TO SHOW IP VIA PHP

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

Komentar FB


Probably Related Article



1 comments:

muthu said...
May 28, 2009 at 2:17 AM

Hai,
Thanks For your tips about the ip address.I found my internet ip address using this site www.ip-details.com.Anyway your tips useful to me.So once again Thank u.

Related Posts by Categories



Widget by