header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
krishna
Points:0
Posts:0

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



1
zhanglog
Points: 30
Posts:0
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


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 5+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions