altaf.sunesara@gmail.com wrote:[color=blue]
> Hello !
>
> I have some devices which communicate trough LAN to the server the old
> form i was using was FTP as a communication between Server and Client i
> have decided to use personal TCP sockets instead of using the FTP
> protocol. Well im familar with sockets but some concepts im not able to
> get it. I would be using Vb.Net as a server program but the question
> pampering my brain is for eg .. ip 192.168.0.0.1 tries to communicate
> on the server port 5444 and at the same time another device with ip
> 192.168.0.0.2 tries to communicate on port 5444 what would be the
> result in this case the device with ip x.x.x.1 is still using the port
> will the other device can communicate on the same port .
>
> Regards
> Altaf
>[/color]
This is the basic concept:
You use one port to make a connection (port 5444 in this case) then you
open a new port at a random port number (the framework will pick a port
for you) This new port is the one all the communication is done on,
leaving port 5444 for the next connection.
Chris