Saturday, November 5, 2011

How to know if the web server is Windows or Linux based

Goto run->type CMD
IN CMD type
ping Target _Website_Name . For Eg- ping google.com
or
ping target_website/computer_ip_address . For Eg:- 59.172.45.1
Now you will see several ping requests coming
Ping Google Server
We Are interested in seeing the TTL time which you can see at the end of each request in ping.
NOTE:-
1) If TTL <64 then the server is Linux based, 2) If TTL>64 but <128 then the server is Windows bsaed , 3) TTL>128 Mac and others.
From the above screenshot, it is clear that the servers of google are linux based.
Note:- In some Cases you may not get ping replies ( Eg. you try it on your friend’s PC ). Now This can have two reasons, The server is down ie.. The machine is not connected to internet . Else the most common reason, The Firewallis protecting that PC and is not allowing your request toaccess that system.