Topaz Filer: if you use e-mail for business, we can save you money and decrease your risk.
How to get client IP in ASP .NET web Services
Messages   Related Types
This message was discovered on microsoft.public.fdtnservices.netmyservices.sdk.


wangyang
GOOD ANSWER
Dear all:

In ASP .Net Web page,the following code can get client IP:
Dim strClientIP As String
strClientIP = Request.UserHostAddress()
Response.Write(strClientIP)

But How to get client IP in ASP .NET web Services.

Thanks a lot.

Reply to this message...
Vote that this is a GOOD answer... (4 votes from other users already)
 
 
    
bardoux
GOOD ANSWER
Context.Request.ServerVariables ["REMOTE_ADDR"]

[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer... (2 votes from other users already)
 
 
 
System.Runtime.Remoting.Contexts.Context




Ad
BootFX
Reliable and powerful .NET application framework.
Recession Busting Bespoke Software
Get through the recession by investing in bespoke software to decrease costs and create commercial opportunities.
Other DN247 Network Sites
.NET 247
SQL Server Wins
Old Skool Developer
 
Copyright © AMX Software Ltd 2008-2009. Portions copyright © Matthew Baxter-Reynolds 2001-2009. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - .NET 247 is a member of the DN247 Network - 4.0.30129.1734