How to get the OS type from the IPAddress ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pankajit09
    Contributor
    • Dec 2006
    • 296

    How to get the OS type from the IPAddress ?

    How to get the OS type from the IPAddress or Hostname ?
  • RonB
    Recognized Expert Contributor
    • Jun 2009
    • 589

    #2
    How to get the OS type from the IPAddress or Hostname ?
    You can't.

    If you want the OS of the system where the script is running, that's stored in the $^O var.

    Example:
    C:\>perl -e "print $^O"
    MSWin32

    Comment

    • numberwhun
      Recognized Expert Moderator Specialist
      • May 2007
      • 3467

      #3
      IP Address and Hostname are OS independent. There is no way to really tell what OS they are linked/assigned to. To tell that, you would either have to be at the machine the IP is assigned to or, when it connects to your website, have a look at the HTTP headers as it is stored in there.

      Regards,

      Jeff

      Comment

      Working...