Ip address from client RRS feed

  • Question

  • Is there any way to extract information, such as the ip address, of a client that makes a call to a contract method?

    The method is called using netTcpBinding.


    Friday, May 12, 2006 3:37 PM


  • In the current version there are these ways of acheiving that:

    - Use dual binding (WsDualHttpBinding or usign the CompositeDuplexBindingElement for a custom binding)

    - add a custom header on the client and check for it on the server. You can do this transparently for the client code by utilizing the IClientMessageInspector

    Friday, May 19, 2006 12:17 AM