Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
pls guys, i'm new to TCP (socket) programming. i'm just trying out synchronous sockets but i don't know how the remote client computers would connect to my host server. its a desktop apps not a web based apps. pls i need someone to put me through what i hav to do to achieve this remote client connection to this host computer.
Posted

Hi, from the client perspective it is really easy; all you have to do is just connect. Sounds easy and it is easy.
Check out the TcpClient.Connect or simply go over this:
Msdn TcpClient[^]

Cheers, AT
 
Share this answer
 
The question is not specific enough, so I'll try to give you only the general ideas.

Networking can be done in different levels. With TCP, I would recommend working not with sockets, but rather with TcpListener/TcpClient. I tried to overview those levels in my past answers:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].

See also Multple clients from same port Number[^] for general architecture and threading.

First thing you need to understand well is threading.

—SA
 
Share this answer
 

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