Table of Contents

  1. Download
  2. Gateway
  3. Client

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.

adding geoip example screenshot

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