Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Apr : setting the local IP address

www.cryer.info
Managed Newsgroup Archive

setting the local IP address

Subject:setting the local IP address
Posted by:"Danna Tabak" (tabak_dan..@emc.com)
Date:17 Apr 2006 08:26:19

I would like to send UDP broadcasts through two different IP addresses. The IP addresses are statically assigned to two separate physical ethernet cards. I am using TIdUDPClient.    Binding.Assign(source) with source.ip set to the desired local ip address in an attempt to force the packets out the other card. But this doesn't seam to work. The packets are always leaving from only one of the IP addresses. When I put breakpoints in the Indy source code, it appears that the binding used to send the packet has the correct IP address. Why is this happening?

Replies:

www.cryer.info
Managed Newsgroup Archive