Sunday, July 26, 2009

How to get client's ip address using c# asp.net?

Im creating a website using c# asp.net, and now i need to get the client's Ip address , how do ill get in coding , please any one give me the solution for it

How to get client's ip address using c# asp.net?
Request.ServerVariables("REMOTE_ADDR")
Reply:What he said, but if it's C#, use the [ brackets, not the (.
Reply:No big deal. Ask him!
Reply:try this...





l1.Text += Request.UserHostAddress;





l2.Text += Request.UserHostName;





l3.Text += Request.Browser.Browser;








hope this helps... try also to visit the link(source)


No comments:

Post a Comment