I need to develop a file sharing apps over the internet by p2p. I have very rough idea for developing p2p based apps.
Suppose I have one server which has a static IP which is running at specific port like 5001. Now client connects to server and sends its own public IP.
Questions 1
With the help of C# how client can connect to server and send its own public IP? Guide me which class I need to use?
When server will get IP from client it will store. So when two clients connect then server has IP info of two different PCs. PC1 will request server to get the IP of PC2 and same way PC2 will request to get ip of PC1. So now PC1 & PC2 both have the IP of each other.
Questions 2
Now question is how PC1 can connect to PC2 which code i need to write to connect?
Questions 3
Now question is if PC1 can connect to PC2 then how PC1 can send file to PC2 ?
Please tell me which class I need to use in order to develop this type of P2P-based file sharing apps.