How can we get the client user machine details using JAVA Script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sulekha
    New Member
    • Dec 2006
    • 1

    How can we get the client user machine details using JAVA Script

    Hi all,

    I need to know that how can we get the client machine's information i.e. machine id,machine ip using javascripts?

    Thanking you.

    Regards,
    Namrata
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    This is not possible with JavaScript.

    Comment

    • rnd me
      Recognized Expert Contributor
      • Jun 2007
      • 427

      #3
      you can get a lot of info from window.navigato r, window.screen, and navigator.mimeT ypes. this is more generic info like resolution, cpu type, os version, etc..

      the outside ip is visible only to a server.

      the local ip can be reached from javascript using a simple java bridge:

      Code:
      function myIP(){ var vi="/gets the users local ip number"
          var yip2=java.net.InetAddress.getLocalHost();	
          var yip=yip2.getHostAddress();
        return yip;
      }//end myIP

      i am not sure what "machine id" means...

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        The machine ID will probably be a Windows thing. Some of this info. may be available via ActiveX, but obviously that's IE-only in a non-secure environment.

        Comment

        Working...