TcpClient remote address

  • Thread starter Thread starter Stephen Remde
  • Start date Start date
S

Stephen Remde

what the kosher way of vreating a tcp client/server app in .net?
can anyone recommend a good in depth tutorial?

currently im using a TcpListener but i cant get a remotre address from the
TcpClient's it returns

Stephen
 
Stephen Remde said:
what the kosher way of vreating a tcp client/server app in .net?
can anyone recommend a good in depth tutorial?

currently im using a TcpListener but i cant get a remotre address from the
TcpClient's it returns

It's hidden when you use a TcpClient. If you want to deal with the socket
directly (using TcpListener.AcceptSocket), you can get the
Socket.RemoteEndPoint.

With the socket you can still wrap it in a NetworkStream object and have
much of the ease of use of the TcpClient.

David
 
Back
Top