Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get caller's IP address
Message
From
28/10/2003 12:29:21
 
 
To
28/10/2003 11:27:42
Gary Otte
California Youth Authority
Sacramento, California, United States
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
00843585
Message ID:
00843621
Views:
23
>I have a .NET WebService that authenticates a caller by checking the username and password that are required to be passed in the SOAP header. I would also like to be able to check the caller’s IP address. I’ve tried using HttpContext.Current.Request.UserHostAddress, but this appears to return the IP address of the server where the WebService resides, not that of the calling client.

Try:
HttpContext.Current.Request.ServerVariables("REMOTE_ADDR")
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform