Click here to Skip to main content
15,907,497 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
HI How to get user IP Address in asp.net web application
Thanks to Advance
Posted

Try:
C#
string ip=Request.ServerVariables("REMOTE_ADDR");
 
Share this answer
 
Comments
[no name] 19-Oct-13 7:02am    
What is meaning of REMOTE_ADDR
OriginalGriff 19-Oct-13 7:21am    
It's the name of a specific server variable:
http://www.w3schools.com/asp/coll_servervariables.asp
Hemant Singh Rautela 19-Oct-13 7:11am    
remote address...
I think you need more explanation then why not study in MSDN about in detail....
:-)
Use following code:
C#
Request.UserHostAddress;
 
Share this answer
 

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