This is probably a Network related question, although i can't really find out what is going on.
InetAddress giriAddress = java.net.InetAddress.getByName("www.google.com");
String address = giriAddress.getHostAddress();
System.out.println(address);
//output
//74.125.24.147 as well as 216.58.210.228
What i expected:
8.8.8.8
What I got:
74.125.24.147
216.58.210.228
Note:
And in fact by visiting both of these addresses I'm viewing google's homepage
My Question:
Why 8.8.8.8
is not returned? Why these two addresses looping on each other?