I am developing a filetransfer application in VB.Net
File sizes vary, but can reach 10+ GB.
I am already creating a chat application as a test.
On the client side, I run this code to connect to the server.
Dim clientSocket As New System.Net.Sockets.TcpClient() Dim serverStream As NetworkStream clientSocket.Connect("127.0.0.1", 80)
Can I also use this to transfer files?
I want the application to work through a firewall and stuff.
So, it seems to me that I need the outgoing data on the client to go through port 80. On the server, I want to be able to receive data on another port (for example, 8888). Is it possible?
And the last question. Which protocol should I use for this purpose TCP or UDP.
Sorry for asking three questions :)
Thanks for helping me.
source share