Hi Danijel,
before I try some other components to determine the local ip adress, i'd like to ask, what would be the rtc way to do it..
I build a small upd example for myself to see, if I can improve the existing code of a service I'm running in my client installations.
It's just UdpClient/Server and it works fine. But when I try to return the ip adress the server is running on, the LocalAddr function returns 0.0.0.0
procedure TForm5.RtcUdpServer1DataReceived(Sender: TRtcConnection);
var S: String;
begin
S := Sender.Read;
If S = 'huhu' Then
Sender.Write(Sender.LocalAddr);
CodeSite.Send( csmLevel4, 'Data', S);
end;
the server config is :
object RtcUdpServer1: TRtcUdpServer
MultiThreaded = True
ServerPort = '10103'
OnClientConnect = RtcUdpServer1ClientConnect
OnDataReceived = RtcUdpServer1DataReceived
Left = 152
Top = 120
end
Any ideas ?
Thanks in advance,
Helge