How can I create a P2P script without a main server to manage connections and file transfer? No seed/leech thing, just from one computer to another computer.
I already read a couple of similar questions on SO but I want to explain exactly what I need and maybe a miracle will happen.
Explained:
User A & B, both have a PHP server installed locally.
User A type 127.0.0.1:[server port] and get a page with : 1 IP, 17 files. User A click on the IP and get the list of files. If he click on a file, a jQuery/PHP script will download the file to the htdoc directory. the User B sees an alert on his/her side (127.0.0.1[server port]) that user A is downloading this file.
Is it possible? And any hints to accomplish this?
Second question: User A changes his/her IP, a HTTP request is made to user B and the new IP is stored in a local SQLite DB. (For that part, it's okay, the script check each X minutes if the IP is the same, on change, it sends the request)
What if both user changes their IP at the same time? They will need to contact each other to get their current IP address and update it manually? Does this make sense?