c# - Get user location by IP address -
i have asp.net website written in c#.
on site need automatically show start page based on user's location.
can name of user's city based on ip address of user ?
you need ip-address-based reverse geocoding api... the 1 ipdata.co. i'm sure there plenty of options available.
you may want allow user override this, however. example, on corporate vpn makes ip address look it's in different country.
Comments
Post a Comment