How-to find IP address of a web service consumer?

J

John Smith

We can find IP address from the regular web user via the
Request.ServerVariables collection.
How do we do the same for a web service?

Thank you.
~Js.
 
J

Jan Tielens

Sure, you can access the ServerVariables like this:

this.Context.Request.ServerVariables (C#)
Me.Context.Request.ServerVariables (VB.NET)

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top