ip-geolocation

Geolocating IP Address in C#

为君一笑 提交于 2019-12-22 18:06:26
问题 I am developing an windows 8 app in C# And want to get Geo Coordinates of IP addresses or Want an API that can exactly or nearly geolocate the IP address in windows 8 app! Thanks in advance for your help! 回答1: Just use a web service here is free one 10000 requests per hour http://freegeoip.net/static/index.html REST Call http://freegeoip.net/xml/[your ip] EDIT Simple code to download from a url using (var objClient = new System.Net.WebClient()) { var strFile = objClient.DownloadString("http:/

how to get the client/user location details

孤街醉人 提交于 2019-12-21 20:39:00
问题 In my application I want to track the client/user location to store in database. I'm using this code to get the user IP Address string VisitorsIPAddr = string.Empty; if (HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] != null) { VisitorsIPAddr = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString(); } else if (HttpContext.Current.Request.UserHostAddress.Length != 0) { VisitorsIPAddr = HttpContext.Current.Request.UserHostAddress; } ipAddress =

Exactly how accurate is IP Geolocation?

情到浓时终转凉″ 提交于 2019-12-17 19:11:54
问题 I'm setting up a iPhone tracking system for my friends, so they can submit their location to my website by their iPhone, anywhere, anytime - by WiFi or cellular data. The website will use Google Maps for their coordination's so that my other friends can track where they are, however, it is the accuracy of the IP to coordinates to Google Maps is what I'm concerned about, exactly how accurate is it to use Google Maps that would track down the locations by an IP address? I was thinking about 95%

get region/city from ip [closed]

走远了吗. 提交于 2019-12-17 17:33:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . how can I retrieve the region and the city from an ip? I have found this service: http://api.hostip.info/?ip=xyz.qwe.rty But It doesn't give me accurate info like this: http://www.ipaddresslocation.org/ Do you know some free service? I need to retrieve this info with a php script, but I wouldn't install external

Getting a user country name from originating IP address with Ruby on Rails

二次信任 提交于 2019-12-17 17:26:02
问题 I want to extract a user country name from visitors' IP addresses. I could get the IP address with remote_ip . But what could be the easiest way to get the country name? It doesn't have to be super accurate. Any ruby library (gem or plugin) to do this? I want an simple and easy solution for this. 回答1: You can use geoip gem. environment.rb config.gem 'geoip' Download GeoIP.dat.gz from http://www.maxmind.com/app/geolitecountry . unzip the file. The below assumes under #{RAILS_ROOT}/db dir.

How to get city name based on IP address in java?

99封情书 提交于 2019-12-17 12:41:10
问题 Is it possible to know the city name based on IP address in java? 回答1: are you using jsp or what ? for city name over client side you can use google's API which will return you the geographical details of the user mapped with the IP. As google's documentation say you can get the following When populated, the google.loader.ClientLocation object is populated with the following metro-level granularity properties: * ClientLocation.latitude — supplies the low resolution latitude associated with

Display website in a user's native language based on the IP address

混江龙づ霸主 提交于 2019-12-13 02:35:05
问题 I want my website to be opened in a visitor's native language as determined by the IP address where the user has logged in from. By default the page opens in English, but I want my customers from France to read the site in French. I have gone through www.ipinfo.io for information, but I am still a bit confused and would like to know the json format. 回答1: You should use the accept-language header that the user's browser passes to your site to determine the language, rather than the user's

code for finding the state,country,city from the IP Adress in php

我们两清 提交于 2019-12-13 01:25:00
问题 Sir, I developing a site. In which i get the IP addresses of the users from where they are entered. Now i want to find the State,City and country from where they are entering.That means i want to find the state, country, city from the IP address of the user. the code i need in php. can you help me to do that 回答1: Have you looked at using the Geo IP module? For example, the geoip_region_by_name() function: The geoip_region_by_name() function will return the country and region corresponding to

Getting Country name By Ip Address in android

允我心安 提交于 2019-12-13 01:12:18
问题 My requirement is to get country name by device Ip. Without any WEB/API calls. I googled well but I cannot conclude anything. We have good free service MaxMind but it provides CSV format as well its very huge in file size. Do we have any suggested way.? We should not use location based service like GPS/Network Provider..? please helps me to fix this out.. 回答1: You can use http://freegeoip.net/ It allows up to 10,000 queries per hour by default. It uses json parsing you can easily implement

Determine user's internet connection type via javascript or jquery

核能气质少年 提交于 2019-12-12 01:43:58
问题 I'm using javascript to lookup a user's location based on the IP address. It works great for everything except cellular networks (which, unfortunately, is the bulk of my site's visitors). For cellular connections, the location is often off by 100 miles or more. A stripped down version of the site is here: http://autopilothomelistings.com/ab/geoip13.html I'm trying to figure out a way to determine if a visitor to my site is on a wireless connection or on Wifi/LAN, so that I can display