private void ConnectionRemoteEndPoint() { IPAddress ipAddr; TcpClient tcpServer=new TcpClient(); ipAddr = IPAddress.Parse("192.168.1.3") try { tcpServer.Connect(ipAddr, 2000); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void AcceptRemoteEndPoint() { TcpListener listener_tcp; TcpClient Remtcp; listener_tcp = new TcpListener(IPAddress.Parse(192.168.1.3), 2000); listener_tcp.Start(); while (true) { Remtcp = listener_tcp.AcceptTcpClient(); } }
ConnectionRemoteEndPoint()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)