如何使用C#通过IP地址连接服务器?
问题描述:
嗨朋友们,
这里我有一个问题,是否可以通过单击按钮使用C#程序通过IP地址连接服务器?请给我一个如何连接IP地址的示例代码。请帮帮我....
BR,
Thanes
Hi friends,
Here i have a question, is that possible to connect a server through IP address using C# program by clicking a button? Please give me a sample code how to connect IP address. Please help me....
BR,
Thanes
答
TcpClient.Connect方法(IPAddress,Int32) [ ^ ]:连接客户端到远程TCP主机使用指定的IP地址和端口号。
C#中TCP客户端服务器简介 [ ^ ]
用C#编写的TCP / IP服务器 [ ^ ]
-KR
TcpClient.Connect Method (IPAddress, Int32)[^] : Connects the client to a remote TCP host using the specified IP address and port number.
Introduction to TCP client server in C#[^]
A TCP/IP Server written in C#[^]
-KR