November 24th, 2012, 12:52 AM
Resolve IP Address
I am using
to get the ip address of the user but some times iam getting an ip address as following
what does this ip address means and how can i resolve it?
i found one link which resolves it on
but i need to do it an script as i need to map ip address to country.
Can anyone help in resolving the ip address using php script.
November 24th, 2012, 07:40 AM
To get the IP, just use:
(Works in MOST cases, but there are exceptions)
gethostbyaddr() resolves the IP to a hostname, using Reverse DNS
November 25th, 2012, 11:32 PM
Thanks for that information.will check it out.