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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -