Title: Sender.LocalAddr = 0.0.0.0 in DataReceived event Post by: HelgeLange on June 25, 2017, 03:42:16 PM 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 Code: procedure TForm5.RtcUdpServer1DataReceived(Sender: TRtcConnection); the server config is : Code: object RtcUdpServer1: TRtcUdpServer Any ideas ? Thanks in advance, Helge Title: Re: Sender.LocalAddr = 0.0.0.0 in DataReceived event Post by: D.Tkalcec (RTC) on June 25, 2017, 04:38:08 PM LocalAddr of the Server is irrelevant for the Client. What does matter is the PeerAddr you get on the Client after receiving data from the Server.
Best Regards, Danijel Tkalcec Title: Re: Sender.LocalAddr = 0.0.0.0 in DataReceived event Post by: HelgeLange on June 25, 2017, 04:48:56 PM So i mounted the horse from the wrong side :)
Thanks for the quick reply! Helge |