독일의 일부 IP를이 InetAddressLocator와 함께 제공되는 IP 데이터베이스에없는 제안 사항에 내 코드입니다. 명령 줄을 통해 대화식 모드로 실행하여이를 볼 수 있습니다.
Codemans - 맥북 : coldfusionmx입니다-geoLocator - 2.23 Codeman $ 자바 InetAddressLocator.jar
InetAddressLocator - Java country lookup.
-----------------------------------------
Copyright (C) 2003-05 Nigel Wetters Gourlay and Paul Hastings
InetAddressLocator comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute
it under the GNU General Public License.
Running benchmark. Please be patient...
Speed: 1260307 ops/sec
(61% of address space is allocated)
Locating localhost
Host: /192.168.15.238
Country: Unknown (private network)
enter host ('q' to quit) > 5.199.139.54
Host: /5.199.139.54
Country: Unknown
는 당신에게 동일한 문제가 제공된 소스 포지 페이지에 제공된 데모 링크 존재한다는 것을 알고 있습니까 -jar ? http : //www.sustainablegis.com/projects/geoLocator/ 즉, 귀하의 구현이 아니라 문제인 공급 업체 코드입니다. – Codezilla
MaxMinds GeoIP 서비스와 같은 서비스를 사용하는 것이 더 나을 것입니다.이 서비스는 무료 버전을 구매하거나 사용할 수 있습니다. http://dev.maxmind.com/geoip/geoip2/geolite2/ sourceforge 링크를 통해 읽으면 어쨌든 maxmind의 모호한 하드 코드 된 버전을 사용하는 것처럼 DB를 사용하면 날짜가 더 올라간다는 것을 의미합니다. – Jarede
안녕 모두, 감사합니다. 예, 이해가됩니다. 그것의 문제는 "InetAddressLocator". 그러나 달성하기위한 최선의 방법은 무엇이라고 생각하십니까? 성능상의 이유로 인해 데이터베이스 또는 웹 서버에 대해 확신하지 못했습니다. 과거에 경험이있는 사람이 있습니까? – Roomdu