How to get the origin IP of a netTcpBinding call in WCF?
-
25-09-2019 - |
Question
The called method have access to binding-level information like the origin IP address?
Solution
You should be able to use this snippet:
((RemoteEndpointMessageProperty)OperationContext.Current.IncomingMessageProperties[RemoteEndpointMessageProperty.Name]).Address;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow