Try with GetXAddr method. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be
----- Original Message ----- From: "George" <[EMAIL PROTECTED]> To: <twsocket@elists.org> Sent: Friday, February 17, 2006 3:25 PM Subject: [twsocket] UDPServer receive and IP > 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 -- 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