Click here to Skip to main content
12,824,281 members (43,587 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# IPv6 Address

I do not know if this is double post! Is this possible to get zip code or postal code form IP address? As per I googling I have some way to get longitude and latitude from IP. I would be wounder if we can find zip code from latitude and longitude or directly from the ip.

Posted 26-Feb-12 4:21am
Updated 26-Feb-12 4:26am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

No. IP addresses are not geographical.

IP address can (in theory at least) be located to a specific city, but it is very, very often out by 50 miles, and occasionally by hundreds.

IP addresses are allocated by ISP for the most part, so tend to be registered at the offices of the ISP. My IP has come back with a physical location in different countries before now!
Аslam Iqbal 26-Feb-12 23:36pm
I was thinking like you. my 5
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

After a google search I found[^] site which is showing it can give you the Zipcode based on the IP address.

Hope it helps :)

NOTE: I haven't try though!
Bernhard Hiller 27-Feb-12 3:45am
Again "Berlin" for my home, 350 km away. With the short distances in Germany, that's quite a useless result. Berlin is the place where my ISP is registered.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 26 Feb 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100