Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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: UNSURE 0.423 X-Spam-Level: **** X-Spam-Evidence: '*H*': 0.19; '*S*': 0.03; 'remaining': 0.07; 'number?': 0.16; 'reboot': 0.16; 'thereby': 0.16; 'too?': 0.16; 'sat,': 0.16; 'subject: ?': 0.16; 'wrote:': 0.18; 'obviously': 0.18; 'to:name:python-list@python.org': 0.22; 'connected': 0.24; 'server.': 0.24; '(or': 0.24; 'mention': 0.26; 'header:In-Reply- To:1': 0.27; 'fixed': 0.29; '(this': 0.29; 'am,': 0.29; 'locations': 0.30; 'message-id:@mail.gmail.com': 0.30; '13,': 0.31; 'are.': 0.31; 'received:209.85.212': 0.32; 'running': 0.33; 'device': 0.34; 'received:209.85': 0.35; 'anywhere': 0.35; 'connection': 0.35; 'something': 0.35; 'case,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'cities': 0.36; 'combination': 0.36; 'house,': 0.36; 'scheme': 0.36; 'changing': 0.37; 'received:209': 0.37; 'mine': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'even': 0.60; "google's": 0.60; 'is.': 0.60; 'phones': 0.60; 'most': 0.60; 'new': 0.61; 'matter': 0.61; "you're": 0.61; 'address': 0.63; 'our': 0.64; 'connecting': 0.64; 'map': 0.64; 'networking': 0.64; 'telling': 0.64; 'different': 0.65; 'laptop': 0.65; 'phone': 0.66; '8bit%:92': 0.71; '8bit%:100': 0.72; 'jul': 0.74; 'friends': 0.81; '10:43': 0.84; 'athens': 0.84; 'cars': 0.84; 'dhcp': 0.84; 'lease': 0.84; 'rooms': 0.84; 'skepticism.': 0.84; 'expires': 0.91; 'tied': 0.93; '2013': 0.98 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding:x-gm-message-state; bh=h7jBTprUUAyi5We9Lheyg4VijH/Zn0RJIfkV7w4y7Ss=; b=ofA49OtTdU+1a1mlxEivCKXMQ+uFHCfe48s5yeX5uQPX2hUe9xIcKu2Vh5gA55Pi0w bPPVzJ26UuVNQIYJ1xv61mtp1Rkmt2WNOulvezBE3/dSarcZTvXl8zgsqsfNsnqYpCkA Z2KnRBu6A44AS71yIkYx7mL5CgxwquQhSW8CCsgxUaMJXv99MRV7C2v7C+Pv9aXvzolf y371e4h7938YrOzjmHw4EOub9IBnDLOjNmKEttZgV+vInKnnUZs1Iobu8siuonJQs97k 6cDouItAf1Gga0ymgAEAm0qA1gycMkvaU8fFU+hukY9wDj9wipavBtl0oFyDPhu9wMWN n7ng== X-Received: by 10.194.243.101 with SMTP id wx5mr27165782wjc.49.1373739455321; Sat, 13 Jul 2013 11:17:35 -0700 (PDT) X-Received: by 10.194.243.101 with SMTP id wx5mr27165779wjc.49.1373739455222; Sat, 13 Jul 2013 11:17:35 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Benjamin Kaplan Date: Sat, 13 Jul 2013 11:17:15 -0700 Subject: Re: GeoIP2 for retrieving city and region ? To: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQnJ1/f84c4zl5G6k1Oqkmkl2SyxeiB2c9rNaU6JA9r2sGN3dAIWPDVKgmD3poG3P3HW8RQxPkCwaz0hrpsqco7qJKroc7WtgVIonwA+8QHze1+ehfK0Da2ZyZkCvgEY1+IiUDirorz2EZipOhGEUFhA8ZAEQQ== X-Junkmail-Whitelist: YES (by domain whitelist at mpv1.tis.cwru.edu) X-Mailman-Approved-At: Mon, 15 Jul 2013 15:00:27 +0200 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: 53 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373893228 news.xs4all.nl 15955 [2001:888:2000:d::a6]:50809 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50684 On Sat, Jul 13, 2013 at 10:43 AM, =CE=9D=CE=B9=CE=BA=CF=8C=CE=BB=CE=B1=CF= =82 wrote: > =CE=A3=CF=84=CE=B9=CF=82 13/7/2013 7:54 =CE=BC=CE=BC, =CE=BF/=CE=B7 Denni= s Lee Bieber =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: >> >> Are you paying for a fixed IP number? I suspect you are if you >> were >> running a world-accessible server. >> >> Obviously a fixed IP will be tied to a fixed connection and >> thereby to >> a fixed location which can be provided to a location database. >> >> But most of us have DHCP assigned IP numbers, which change >> everytime we >> reboot our connection (or even when the DHCP lease expires -- which may = be >> daily). > > > Same networking scheme for me too, dynamic that is. > > Every time the DHCP lease expires or i reboot the router i get a new ip > address but every time the link i provided states accurately that my ip > address is from Thessalon=C3=ADki and not Europe/Athens which is were my = ISP > location is. > > Not to mention that in facebook, no matter the way i'am joining, via > smartphone, tablet, laptop it always pinpoints my exact location. > > But yes, i can understand your skepticism. > An ip address can move anywhere while remaining connected to the same ISP= , > just like a networking device in the house, remains connected to the same > router while changing rooms or even floors, or even buildings. > > But then how do you explain the fact that > http://www.maxmind.com/en/geoip_demo > pinpointed Thessalon=C3=ADki and not Athens and for 2 friends of mine tha= t use > the same ISP as me but live in different cities also accurately identifie= d > their locations too? > It's not telling you where your ISP is headquartered. It's telling you where the servers that you're connecting to are. In your case, you're connecting to servers that your Athens-based ISP has in a Thessaloniki datacenter. The only way to get an accurate location is to use something other than IP- phones like to use a combination of their GPS, a map of the cell phone towers, and a map of wi-fi hotspots (this is one of the things that Google's StreetView cars log as they drive).