GeoIP Example
This page describes how to setup the GeoIP example application.
This example uses the open source GeoIP APIs for looking up the location of an IP address. The API includes support for lookup of country,
region, city, latitude, and longitude.
There's a live demo available on the PyAMF blog.
Download
Grab the example from SVN with:
svn co http://svn.pyamf.org/examples/trunk/geoip geoip-example
cd geoip-example
Alternatively, if you just want to have a look, you can browse the source online.
Gateway
The remoting gateway for the Flash/AMF client starts on http://localhost:8000 when you run the following command from the python folder:
python server.py
You should see something like:
Running GeoIP AMF gateway on http://localhost:8000
Client
You can simply open the SWF file and it will connect to http://localhost:8000.
Attachments
-
geoip-example.jpg
(8.6 kB) - added by thijs
8 months ago.
adding geoip example screenshot
