How to preserve client IP after WCF routing?

I currently have a WCF service that can get the client IP using the following code:

    private static string GetClientIPAddress()
    {
        RemoteEndpointMessageProperty clientEndpoint =
            OperationContext.Current.IncomingMessageProperties[
            RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty;

        return clientEndpoint.Address;
    }

      

However, when we put the WCF Routing Service in front of the existing service, we now find that the specified IP address is the address of the server that hosts the routing service.

Is it possible that the client's IP address will be saved in full?

+3
ip-address wcf routing


source to share


No one has answered this question yet

Check out similar questions:

1085
How to get client IP address in PHP
560
How do I get the client's IP address using JavaScript?
348
How do I get the IP address of a custom client in ASP.NET?
206
How to return pure JSON from WCF service?
38
How to use socket client with WCF (net.tcp)?
eleven
Get client IP address for WCF, after operation
1
how to bind WCF service to IP address
1
WCF service for multiple clients with database (each for a client)
0
Hosting WCF with IP Address
0
SIlverligh Client WCF Router Performance



All Articles
Loading...
X
Show
Funny
Dev
Pics