Click here to Skip to main content
15,894,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am create a website. Now i want to display IP address and country name which open my website. how does possible.
Posted

 
Share this answer
 
Comments
thatraja 23-Jul-11 12:11pm    
5!
Abhinav S 23-Jul-11 12:13pm    
Thanks thatraja.
Client IP address: Request.UserHostAddress[^]

Country name: See the IPToCountry class of this article: Optimized IP to ISO3166 Country Code Mapping in C#[^]
 
Share this answer
 
Comments
thatraja 23-Jul-11 12:11pm    
5!

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