Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am using TCPCLient and TcpListenersockets. Here am sending request on port 19000 to 192.168.7.56 IP machine. After giving response from that machine i need to response that i got msg to that machine on port 20000.

Means i want to use one port for all requests and another port for response purpose. Is this possible in C#? Is my scenario correct?

Why this requirement is... In TcpListener socket I am getting continues requests from other machine. So it must be always available to get those requests....

After getting request on TcpListener I need to response them that I got req like aknowledgement on different port.

Please suggest how to implement this scenario?

Thanks,
Syed Chand Basha
Posted
Comments
Shambhoo kumar 21-Nov-14 2:02am    
Open this link
http://www.codeproject.com/Questions/651366/Send-data-from-one-port-and-receive-from-another-i
[no name] 24-Nov-14 3:22am    
Why dont you use WCF with net-tcp binding and sharing a mex port ?

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