6/1/2011 7:44:26 AM
Title:
get ip address
Hi All,
How to get the system ip address through java script. please help me.
With Regards,
Venkat
6/1/2011 5:40:09 PM
<script type="text/javascript" language="javascript">
<!--
function GetLocalIPAddress()
{
var obj = null;
var rslt = "";
try
{
obj = new ActiveXObject("rcbdyctl.Setting");
rslt = obj.GetIPAddress;
obj = null;
}
catch(e)
{
//Excepion is happened
}
return rslt;
}
document.write("you ip address is:" + GetLocalIPAddress());
//-->
</script>
the above is only work in IE