IP GeoLocation in VB

与世无争的帅哥 提交于 2019-12-13 20:53:12

问题


How I can geolocate an IP in VBNET?

I want to know the city and country of an IP (better if I can get more dates but I only need that two)

I can do it with any Class? or I need to found a good service to send Post data? in that case, can give a easy service to send/receive the data?

Any example of how to do this using a web API or Classes please?

PS: For VB.NET

Thanks


回答1:


There is no class that will do that for you. It is too high level task and too specific at the same time. You can choose either of approaches:

  1. Have a local database and just query it. Like this.
  2. Use online service, there are lots of them. Some may have API, some will require raw HTTP requests.


来源:https://stackoverflow.com/questions/17196962/ip-geolocation-in-vb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!