WCF + Ip
Good afternoon! I have a service and client, who connected to it. So how can i get an ip address of this client?! I try to use OperationContext but i didn't found things i need..please help me!
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Artem DmitrievPosted Aug 30, 2008, 1:54 AM
Mahesh ChandPosted Aug 29, 2008, 10:58 PM
Did you try this:
HttpContext.Current.Request.UserHostAddress;
or
HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];