How to get the source IP address of a netTcpBinding call in WCF?

Is the called method accessing binding level information such as the source IP address?

+3
source share
1 answer

You can use this snippet:

((RemoteEndpointMessageProperty)OperationContext.Current.IncomingMessageProperties[RemoteEndpointMessageProperty.Name]).Address;
+4
source

Source: https://habr.com/ru/post/1731051/


All Articles