Click here to Skip to main content
15,905,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to fetch User's IP Address, stored it in My Access database and show it to user again for security reason.
I show User's IP in ("Your IP Address Is :-"); manner when user use my website's Feedback page.
The feedback is sent to database along with user's IP Address.
My website is in C#, HTML and database used in it is Access.
Please help me to send detailed code and details that where i can put that code.
Thanks in advanced.
Posted

1 solution

You can use Request's UserHosAddress Property to get the User's IP Address
C#
Request.UserHostAddress


There more properties that Request object provide like
C#
Request.UserAgent
Request.UserLanguages
Request.UserHostName 
etc
 
Share this answer
 
Comments
Sudhir Kumar Srivastava lko 13-Sep-11 8:05am    
i think this will work only in intranet not internet

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