Identify client WCF Service (intranet or internet)

1

I wonder if it is possible to identify the call if a WCF Service on the server, if it was called by a client inside the network (intranet) or outside the network (internet).

I am implementing data compression to be trafficked, but if the consumption was on the network I will traffic without compression.

I have a case that the customer uses a notebook, when he is in the company he is on the network (intranet), but when he goes home, he consumes the service using the internet.

    
asked by anonymous 23.01.2015 / 19:30

1 answer

0

With WCF, you can identify the IP address of the client that is connected to your service by using the RemoteEndpointMessageProperty . From IP you can use some rule based on the subnet to decide if the call is coming from the Intranet or if it is an external call.

    
23.01.2015 / 20:40