Developing a p2p application where in I want to transfer files to a client whosoever's portnumber is open.
For example, if the server has port number 200 and 2 clients have port numbers: 300 and 400 then
- how can I grab clients IP addr
- how do I detect if client port numbers are open
- how do I configure the server client setup (believe I can achieve this via port forwarding but not sure)