Check out example codes for "c# connect tcp". It will help you in understanding the concepts better.

Code Example 1

TcpClient tcpClient = new TcpClient("127.0.0.1", 8080);

Code Example 2

TcpClient tcpClient =  new TcpClient();
tcpClient.Connect(IPAddress.Loopback, 8080);

Code Example 3

Socket s = new Socket(AddressFamily.InterNetwork,   
   SocketType.Stream, ProtocolType.Tcp);

Learn ReactJs, React Native from akashmittal.com