Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Mar : Re: UDP broadcast ignores port to use

www.cryer.info
Managed Newsgroup Archive

Re: UDP broadcast ignores port to use

Subject:Re: UDP broadcast ignores port to use
Posted by:"Koen" (ko..@home.net)
Date:Sun, 9 Mar 2008 17:13:14

I use Indy 9 under Delphi 2007

"Koen" <koen@home.net> wrote in message
news:47d40b3d@newsgroups.borland.com...
> Hi,
> I am experimenting with UDP broadcasts.
>
> The following code works fine:
>
> IdUDPClient1.Host := '255.255.255.255';
> IdUDPClient1.Port := 6666;
> IdUDPClient1.BroadcastEnabled := True;
> IdUDPClient1.Send('my message');
>
> But.. the port used is not 6666..
>
> Successive broadcasts show different ports used (1257, 1273, 1271, 1451,
> etc).
>
> I want to force Indy to use the port I choose.
>
> Anybody any ideas?
>
> Regards,
> Koen

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive