Click here to Skip to main content
15,887,874 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am new to TCP and I am trying to connect to a machine. I've been given the command to connect to the machine. which is in the form of xml.
The port and IP to the machine is also provided, all i have to do is send the command.
The documentation stipulates TCP/IP channels are required for communication.

What I have tried:

I have tried tcpConnect, but ofcourse, how can i send the login through tcp?
Guidance would be helpful.
Posted
Updated 21-Sep-17 9:24am

1 solution

Here is a simple Client - Server example: Introduction to TCP client server in C#[^]
Note that you will have to allow your program through Windows firewall.
If you need authentication, see this example: Authenticate WebAPIs with Basic and Windows Authentication[^]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900