Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

TcpClient.Connect Method

Connects the client to a remote TCP host using the specified host name and port number.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Connect(IPEndPoint) Connects the client to a remote TCP host using the specified remote network endpoint.
Public method Connect(IPAddress, Int32) Connects the client to a remote TCP host using the specified IP address and port number.
Public method Connect(IPAddress[], Int32) Connects the client to a remote TCP host using the specified IP addresses and port number.
Public method Connect(String, Int32) Connects the client to the specified port on the specified host.
Top
Show:
© 2015 Microsoft