Autor Beitrag
dixxi_
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Mo 17.12.12 15:49 
Hallo,
ich will UDP Packete über eine bestimmte Netzwerkkarte senden. In meinem PC sind zwei Karten installiert.
Wie kann ich jetzt sagen, über welche Karte die Daten gesendet werden sollen??

Viele Grüße

dixxi_
Tastaro
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 414
Erhaltene Danke: 23



BeitragVerfasst: Mo 17.12.12 17:11 
Hallo,

die Auswahl der Netzwerkkarte macht Windows anhand der IP von alleine.

Gruß
Michael
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19326
Erhaltene Danke: 1749

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 17.12.12 18:48 
Hallo und :welcome: im Forum!

Du kannst im TIdUdpServer die Bindings nutzen um dich explizit an bestimmte IPs (und damit Netzwerkadapter wie schon user profile iconTastaro schrieb) zu binden. Und im Client gibt es BoundIP als Eigenschaft um die IP festzulegen.