Autor Beitrag
Robii
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 236



BeitragVerfasst: Mi 24.06.09 21:19 
Guten Tag/Abend, ich habe eine Frage.
Ich möchte Anwendung A1 mit der Anwendung A2 kommunizieren lassen, d.h. Dateien hin & her schicken, Befehle entgegennehmen usw. Allerdings liegt A1 auf meinem Computer und A2 auf dem Computer meines Freundes. Wie lässt sich dies realisieren, ohne einen Port in der Firewall zu öffnen? ICQ, bzw. Trilian kann das ja auch, ohne einen Port zu öffnen, evtl. benutzt er einen standart mäßig geöffneten Port?
Viele Grüße.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19341
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 24.06.09 21:26 
ICQ und andere Programme benutzen einen Server, der die Vermittlung der Verbindung übernimmt. Anders ist es nicht möglich ohne Portweiterleitung an einem NAT-Router vorbeizukommen bzw. an einer Firewall.

Dafür braucht man aber eben einen echten eigenen Server, Webspace mit PHP oder so reicht nicht.

Das nennt sich hole punching:
en.wikipedia.org/wiki/UDP_hole_punching
www.heise.de/securit...ehen--/artikel/82054
Hobby-Programmierer
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 238
Erhaltene Danke: 4

Win XP Pro, Vista Ultimate Trial :o)
D6 Pro, D7 Pro, Turbo, XE SE
BeitragVerfasst: Mi 24.06.09 21:50 
Welchen Grund gibt es denn den Rechner deines Freundes/Opfers fernzusteuern? Nicht ohne Grund werden viele dieser Programme als Trojaner eingestuft!
Robii Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 236



BeitragVerfasst: Mi 24.06.09 22:07 
Danke, für die Links, habe mich da mal eingelsen und denke, das Prinzip im Grunde verstanden zu haben.
Nun ist nur noch die Frage, wie realisiere ich das in Delphi? Gibt es da Tutorials o.A ?
Wäre über ein paar Informationen sehr dankbar.
Gruß

Edit:@Hooby-Programmierer, ich habe mit Jaenicke schon mal persönlich darüber gesprochen, er weiß, was ich versuche zu realiseren, keine Sorge, ich wollte eigentlich nicht mit meinem Schul-Delphi, das ich Momentan versuche zu erweitern einen Trojaner zu programmieren.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19341
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 24.06.09 22:57 
Details zur Umsetzung stehen hier.
www.brynosaurus.com/pub/net/p2pnat/
Selbst ausprobiert habe ich es bisher in Delphi nicht, u.a. weil ich noch nicht lange einen echten eigenen Server habe.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 26.06.09 08:27 
Der neue Standart in der Räschdchraypunk!

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.