Autor Beitrag
TimKellner
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73

Win XP Pro
Delphi 7 Enterprise, RAD Studio
BeitragVerfasst: Di 15.04.08 16:23 
Hallo Leute,

ich habe (mal wieder) ein Problem und zwar Möchte ich gerne die Adresse (IP bzw. noch besser MAC) des Rechners haben der sich mit dem TCPServer verbindet

wie kann ich das bewerkstelligen?

Gruß Tim
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 15.04.08 20:59 
von welchem TCP Server reden wir? Indy oder was?

_________________
In the beginning was the word.
And the word was content-type: text/plain.
TimKellner Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73

Win XP Pro
Delphi 7 Enterprise, RAD Studio
BeitragVerfasst: Mi 16.04.08 07:57 
Moin,

ich meine den Indy TCP Server / TIdTCPServer.

MfG Tim
chrisdrury
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 184

WinXP
D5 Prof
BeitragVerfasst: Mi 16.04.08 08:38 
Dann benutze doch die Komponente IdIPWatch. Mit LocalIP oder CurrentIP kann dann die IP des Rechners ausgelesen werden...
TimKellner Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 73

Win XP Pro
Delphi 7 Enterprise, RAD Studio
BeitragVerfasst: Mi 16.04.08 10:22 
Wenn ich das richtig gesehen habe gibt mir die Komponente aber die IP von dem Server aus. Ich möchte aber die IP von dem Client der SIch mit dem Server verbindet haben.
chrisdrury
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 184

WinXP
D5 Prof
BeitragVerfasst: Mi 16.04.08 11:21 
Dann schau mal in der Indy-Hilfe unter TIdTCPConnection.Socket.Binding.PeerIP nach.
Oder hier: www.delphi-forum.de/...ghlight=peerip++indy