Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.038 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'neighborhood': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'allocates': 0.16; 'assignments': 0.16; 'assignments.': 0.16; 'belonging': 0.16; 'blocks': 0.16; 'dsl,': 0.16; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reserves': 0.16; 'too?': 0.16; 'sat,': 0.16; 'subject: ?': 0.16; 'bit': 0.19; 'url:home': 0.24; 'regardless': 0.24; '(or': 0.24; "i've": 0.25; 'defined': 0.27; 'header:X-Complaints-To:1': 0.27; 'locations': 0.30; 'node': 0.31; 'class': 0.32; 'there,': 0.34; 'but': 0.35; 'cities': 0.36; 'mine': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'skip:x 10': 0.40; 'how': 0.40; 'company': 0.60; 'office': 0.60; 'central': 0.64; 'different': 0.65; 'phone': 0.66; 'jul': 0.74; 'address,': 0.75; 'friends': 0.81; 'athens': 0.84; 'irrelevant': 0.84; 'lease': 0.84; 'issued': 0.93; 'received:108': 0.93; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: GeoIP2 for retrieving city and region ? Date: Sat, 13 Jul 2013 14:21:34 -0400 Organization: IISS Elusive Unicorn References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: adsl-108-79-217-14.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373739697 news.xs4all.nl 15876 [2001:888:2000:d::a6]:45492 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50606 On Sat, 13 Jul 2013 20:43:14 +0300, ??????? declaimed the following: >But then how do you explain the fact that >http://www.maxmind.com/en/geoip_demo >pinpointed Thessaloníki and not Athens and for 2 friends of mine that >use the same ISP as me but live in different cities also accurately >identified their locations too? > You have encountered an ISP that reserves IP blocks for specific suburbs/cities -- and can be tracked thereby. That is, all IPs in xxx.yyy.zzz.??? may be held for just one neighborhood (granted, I've defined an old class C network there, but modern network assignments are no longer in A/B/C (8/16/24 bit network address, with 24/16/8 bit node addresses) assignments. It all comes down to how the ISP allocates addresses. It may be that (as in my case) the ISP is irrelevant -- the IP is issued by the phone company that actually provides the DSL, and a block of IPs is allocated to each "central office" of that phone company... And thereby, regardless of the lease renewal, the IP is still identified as belonging to that central office location (or whatever location the phone company supplies to the location service for the IP block). -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/