Try Context.Request.UserHostAddress to get their IP
But IIS will already do logging for you, so I'm not sure why you want to do
this manually.
<msnews.microsoft.com> wrote
Quote:
Hello,
In a Visual Studio 2005 VB.NET Web Service where would I write the code to
get hings like the clients IP address, etc upon connection to a web
service? Basically I want to log attempt/visits to a web service. There
doesn't seem to be anything like an OnConnection method. Also, what
methods are available to get the IP Address, etc from the connected user?
Thanks a lot.
P.S. I'm also sing WSE 3. Thanks a lot. |