I need to transfer data between several computers in a network using my app. I thought of using TCP ports. Are there any tutorials on how to open and use them? I only want to make a file transfer and chat app that works offline.
I suggest you look at the documentation for TcpClient
and TcpListener
, both of which include examples.
It's hard to give a more specific recommendation without a more specific question - are you trying to create your own protocol on top of TCP/IP, or implement an existing one? If it's an existing one, there may well be a higher-level API already available.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With