私は TcpListener を使用して単純な FTP サービスを作成しており、着信呼び出しが使用しているホスト名 (複数のサブドメインを持つドメイン) を調べたいと考えています。
これは可能ですか?
//Barebone TCPListener example
System.Net.Sockets.TcpListener listener;
listener = new TcpListener(IPAddress.Any, 21)
listener.Start();
TcpClient client = listener.AcceptTcpClient();
//Great, incoming... what domain are they using to call my service?
//This only gives me the local and remote IP..
//IPEndPoint LocalEndPoint = (IPEndPoint)client.Client.LocalEndPoint;
//IPEndPoint RemoteEndPoint = (IPEndPoint)client.Client.RemoteEndPoint;
どんなポインタでも大歓迎です。