get the IP address of the Client

fotini

Active member
Joined
Jun 3, 2003
Messages
39
I cant find the way to get the clients IP Address from the TcpClient...
If I dint use TcpClient, I could AcceptSocket() instead of AcceptTcpClient() to get the socket. When I had the socket I could use get_RemoteEndPoint()
but
I want to use TcpClient.
Actually, Im trying to create a derived class from NetworkStream so that I have access to its protected Socket method and get the IP address...I want help or a better idea....Please.....

Thanks
 
I think youll have to inherit so you can expose the underlying Socket as needed.
 
Back
Top