H
herbert
hi everybody,
My TcpListener give me a TcpClient, and i would like to have the IP
address of this TcpClient.
I can have a NetworkStream with TcpClient.GetStream(), but I can't read
NetworkStream.Socket that is protected...
I've tried to create a class thats inherits from NetworkStream, but i
can't cast: DerivedNetworkStream dns =
(DerivedNetworkStream)TcpClient.GetStream()
An exeption raises.
how can I do it ?
My TcpListener give me a TcpClient, and i would like to have the IP
address of this TcpClient.
I can have a NetworkStream with TcpClient.GetStream(), but I can't read
NetworkStream.Socket that is protected...
I've tried to create a class thats inherits from NetworkStream, but i
can't cast: DerivedNetworkStream dns =
(DerivedNetworkStream)TcpClient.GetStream()
An exeption raises.
how can I do it ?