问题
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:
- Have a local database and just query it. Like this.
- 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