tom13 Posted May 18, 2008 Share Posted May 18, 2008 Hi, I want to exchange files between computer A and computer B using a peer to peer system. Should this be done using TCP, and if so, how? If not, then what is the best option? Best regards, Tom Link to comment Share on other sites More sharing options...
tom13 Posted May 18, 2008 Author Share Posted May 18, 2008 not possible with autoit maybe? Link to comment Share on other sites More sharing options...
CHronologist Posted May 18, 2008 Share Posted May 18, 2008 I think using TCP functions is always like peer-to-peer since you connect two computers at their IPs.You need to create a GUI where your Client and Host enter the IP used.If you want to know how to use TCP there are several posts in this forum like this one from AutoIT Smith:http://www.autoitscript.com/forum/index.php?showtopic=18738And concerning file exchange there is a UDF by GTAspider that can help you by writing your programm:http://www.autoitscript.com/forum/index.php?showtopic=46341 Link to comment Share on other sites More sharing options...
Kip Posted May 18, 2008 Share Posted May 18, 2008 Tcp isn't peer to peer. Peer to peer means client to client. Tcp is server to client MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
tom13 Posted May 18, 2008 Author Share Posted May 18, 2008 Tcp isn't peer to peer. Peer to peer means client to client. Tcp is server to clientIs it possible to make a peer to peer program with AutoIT then? Link to comment Share on other sites More sharing options...
monoceres Posted May 18, 2008 Share Posted May 18, 2008 You could always try and implement the bit torrent protocol, here's a link Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Kip Posted May 18, 2008 Share Posted May 18, 2008 Pure autoit? No. Maybe with some DLLCalls MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Kip Posted May 18, 2008 Share Posted May 18, 2008 You could always try and implement the bit torrent protocol, here's a linkAn application layer (http, ftp) is something else than a transport layer (tcp, udp). MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 18, 2008 Developers Share Posted May 18, 2008 (edited) Tcp isn't peer to peer. Peer to peer means client to client. Tcp is server to clientThis is not really a valid statement.Peer-to-peer is different from Server-Client but both are using TCPIP. Peer-To-Peer says something about the role of each party in the connection. Edited May 18, 2008 by Jos SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Kip Posted May 18, 2008 Share Posted May 18, 2008 (edited) BasisprincipeOm een TCP-verbinding op te bouwen stuurt de client een TCP-pakket naar de server met de zogenaamde SYN-vlag.van wikipedia Edited May 18, 2008 by Kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 18, 2008 Developers Share Posted May 18, 2008 (edited) van wikipediaYes .. and ?All P2p programs are using TCPIP that is not a question but a fact.P2P really means that each machine connected has both a Server and a Client role and means everybody is eachothers "equal". Edited May 18, 2008 by Jos SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Kip Posted May 18, 2008 Share Posted May 18, 2008 yeah, but if each computer is the server, then every computer should forward ports and that stuff. When i start limewire, I don't have to open any ports. MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
yucatan Posted May 18, 2008 Share Posted May 18, 2008 Yes .. and ?All P2p programs are using TCPIP that is not a question but a fact.P2P really means that each machine connected has both a Server and a Client role and means everybody is eachothers "equal".hi jos nice explanetion(A) your totaly right Link to comment Share on other sites More sharing options...
Developers Jos Posted May 18, 2008 Developers Share Posted May 18, 2008 (edited) yeah, but if each computer is the server, then every computer should forward ports and that stuff. When i start limewire, I don't have to open any ports.This implies you agree that IP is used since you talk about ports now.Let me ask you this: Are you automatically sharing files when you start Limewire ?In the Window "Overzicht" is the top part used for the downloads and the bottom part for the uploads.The Port forwarding is only required when the party at the "outside" tries to connect back with a different port than you went out with. Your firewall will know all ports/session you initiated and as long as the program only uses those ports, things will work without any port mapping/forwarding.Jos Edited May 18, 2008 by Jos typo's SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Kip Posted May 18, 2008 Share Posted May 18, 2008 I also see limewire uses UPnP to configure the router. MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 18, 2008 Developers Share Posted May 18, 2008 (edited) I also see limewire uses UPnP to configure the router.Could be too.. I haven't looked at the details of all ports used by the program.Anyways, P2P is an Application and IP is a transport mechanism which both are totally separate things. Nicely defined in the OSI layer model Edited May 18, 2008 by Jos SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Kip Posted May 18, 2008 Share Posted May 18, 2008 An application layer (http, ftp) is something else than a transport layer (tcp, udp).That's why I just said that to monoceres (a view posts back) MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
tom13 Posted May 18, 2008 Author Share Posted May 18, 2008 So, What would work is making an application that makes the current system both a server and a receiver? Link to comment Share on other sites More sharing options...
Kip Posted May 18, 2008 Share Posted May 18, 2008 yes MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
tom13 Posted May 19, 2008 Author Share Posted May 19, 2008 best way to do that is by using TCP? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now