In C# there is a library of computer code in use that determines the Province - City - Country through the WAN IP address? I've seen some code on the net but it doesn't work
Loading
In C# there is a library of computer code in use that determines the Province - City - Country through the WAN IP address? I've seen some code on the net but it doesn't work
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Naimish MakwanaPosted Feb 3, 2023, 3:39 AM
Hi Dong,
Example is already given below.
Thanks
Naimish
Dong Lam TrienPosted Feb 3, 2023, 3:34 AM
I don't quite understand this problem, do you have an example ?
Naimish MakwanaPosted Feb 2, 2023, 8:23 AM
Hello Dong,
First, you need to get an API key from a reliable IP Geolocation service, such as IPGeolocationAPI.
Then you can use below method to get the data.
Thanks
Naimish Makwana
Dong Lam TrienPosted Feb 2, 2023, 8:02 AM
do you have an example code that runs on winform ?
Vishal JoshiPosted Feb 1, 2023, 10:10 AM
Hello
Please review the below article c# Corner to get expected result.
https://www.c-sharpcorner.com/UploadFile/rahul4_saxena/geographical-information-by-ip-address-in-Asp-Net-and-C-Sharp/
Thanks
Naimish MakwanaPosted Feb 1, 2023, 8:36 AM
Hello Dong,
You can use below lib in C#.
These libraries can be easily integrated into a C# application and used to retrieve the location information for a given IP address.
Thanks
Naimish