The IP address you get by this is not always reliable. Organisations who know how to imply security do NATting where they spoof their static IP with a dynamic or other static IP to keep their servers safe from hackers. Also many times free websites or websites with premade frameworks are often hosted on same servers. So IPs of alot of websites may appear to be same. So its not useful since that host has also employed NATting. This trick is useful in case where the websites are locally hosted by individuals or organizations on their own hardware and who are not concerned about their security or they ignore it. Like many small scale colleges, small companies/offices etc. Many a times in order to apply effective security many websites wont even respond to ping request.
To support this, the IP address of google you get by ping is of course not the real IP address. On the other hand, if you try to ping microsoft.com, it wont even give you a reply. So trusting on Pinged IPs works like 20% times to get you the perfect IP address.
This is a link to a screenshot of three guildlaunch hosted websites. Three different websites hosted by same company(Guildlaunch-provide framework and space to host/create a website. Pretty good must try it sometimes if you want.). Same IP address to all three websites but doesn't respond to ping. The server administrator has blocked the ping command in order to protect their server from getting DDoSed. Because if this server goes down, it affects a number of websites- paid as well as free.
#-Link-Snipped-#
this is a screenshot of trying to ping microsoft.com. No reply. Also the IP address displayed is a fake one. Go to some other country or a place with private default gateway (Extremely secret agencies/ high profile stuff/ extremely costly or may say impossible within same country) you will get some different IP there.
#-Link-Snipped-#
This is a screenshot of trying to ping google.com. We get a reply. That too because google supports ping request for their internal networking reasons and also people are too attached to google to check their connections. First website you open is Google. So they ping it to check the network sometimes. Google has employed extensive NATting which means on layers they protect their actual IP address. Go to some place with different default gateway, you get some different IP.
#-Link-Snipped-#
![[IMG]](proxy.php?image=http%3A%2F%2Fi.imgur.com%2FeYWuxg2.png&hash=f37c14c72bcae558a0ca71162d3919ac)