IPloc is a free web service that returns location information for a given ip (or the requesting computer's IP if none is given) in a wide variety of formats. It can even give a little flag, like this:
(that should be your land's flag).
- Simple: a quick HTTP GET is all you need
- Flexible: get results as xml, json, text, serialized php, flag image, or a custom formatted string
- Crossdomain.xml: accessible from Flash and Flex regardless of domain
- Free!