Question
How to find client Machine IP Address using C# in .net 4.0 ?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Javeed M ShaikhRank #839 · 2.7K reputationPosted May 2, 2013, 5:53 AM EDT
using System.Net;
Jignesh TrivediRank #16 · 50.3K reputationPosted May 2, 2013, 9:18 PM EDT
hi,
you can also use HttpRequest.UserHostAddress to remote client IP
Pleasae refer
http://msdn.microsoft.com/en-us/library/system.web.httprequest.userhostaddress.aspx
hope this will help you