Reputation: 4264
From a .net based application, what would be the quickest way to determine if an OS running on a remote machine is windows or linux?
Upvotes: 2
Views: 6919
Reputation: 935
Just ping it. If the TTL (Time-To-Live) is 254 or less it is unix-based and if TTL is 128 or less it is windows.
Upvotes: 2