Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Dear All,

I am developing one web-based application in which I just want to find out IP Address of my user's PC(the one who logged-in My App). Can any one suggest me any function supported in Silverlight to get IP Address.

Thanks In Advance!!
Aarifa.
Posted

1 solution

i hope this will help you

C#
protected string GetUser_IP()
{
    string VisitorsIPAddr = string.Empty;
    VisitorsIPAddr = Request.ServerVariables["REMOTE_ADDR"].ToString();
    ureturn VisitorsIPAddr;
}
 
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