1

I currently have a .Net remoting service that can be accessed by different ways:

  • Locally through an IPC channel
  • Remotely through a TCP channel
  • Locally through a TCP channel

I need to known, in one of my service method, if the call has been made locally or remotely(depending on a licence, I've to send smaller data remotely).

I can't find a way to find this.

I've already a custom IServerChannelSink, I thought that I can detect which type of channel is used of this call, and if it's a TCP one, check it's IP, but I can't find how.

Do you have any idea about how to check if we have a local call or not?

Thank you for the help

4

1 回答 1

1

问题显示如何使用其 IP 地址识别客户端。由于您已经有了一个自定义服务器通道接收器,它应该相当简单。

于 2013-04-24T15:55:27.157 回答