can any of u plz tell me how can two applications access same TCP/IP Port without any problem like how can we make an application to wait when it does try to access the port at same time while another is using the same port and shd be able to use only after the app already using the port completes its process.

Any idea how to go for this??

Expecting for a reply