Hello,

I have a UDPServer component and on DataAvailable

  SrcLen := SizeOf(Src);
  Len    := UDPServer.ReceiveFrom(@Buffer, SizeOf(Buffer), Src, SrcLen);

ShowMessage(inet_ntoa(Src.sin_addr)); // i know the IP address of the remote pc

but since my computer contains 5 ip addresses in the interface, Im receiving 
the same UDP message 5 times.
How can I know what is the IP Address of the local machine that is being read 
data?
I tried UDPServer.Addr and LocalAddr but it always returns 0.0.0.0

UDPServer.PeerAddr crashes my program. I mean it never executes it.

Thanks


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to