OK, so I tried implementing this, http://ipaddressextensions.codeplex.com/.
It is displaying the output as:-
127.0.0.1 RESERVED ZZ
What on earth is this "RESERVED" and "ZZ"? It should be displayed as "INDIA IN".
The IP address is of the local host. All right, but what about the country name and country code? Why won't they display correctly? What do I need to change in my code?