Faisal
Faisal

Reputation: 4264

How to detect OS of a remote machine

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

Answers (1)

Farzan
Farzan

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

Related Questions