Click here to Skip to main content
16,018,949 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I am able to get the external ip address of clients who visit my website. Now, how to know the
name of the location using that ip address. I would like to insert that name into my sql table. Should we get the internal ip address to acheive this? My code wherein I am able to get the external ip address on page load is:
C#
ip = Server.HtmlEncode(Request.UserHostAddress);

thanks.
Posted
Updated 9-Aug-13 6:54am
v3
Comments
Dholakiya Ankit 10-Aug-13 1:42am    
gud question...

1 solution

Any effort? There are tons of article, example on this topic. Look at this one:

http://www.dotnetcurry.com/ShowArticle.aspx?ID=325[^]
 
Share this answer
 
Comments
ridoy 9-Aug-13 13:16pm    
awesome,+5
Dholakiya Ankit 10-Aug-13 1:42am    
nice ans my 5ed

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900