Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Mar : Re: UDP broadcast ignores port to use
| Subject: | Re: UDP broadcast ignores port to use |
| Posted by: | "Koen" (ko..@home.net) |
| Date: | Mon, 10 Mar 2008 14:54:02 |
I have been told one cannot choose the port used to transmit..
"Koen" <koen@home.net> wrote in message
news:47d40c8f$1@newsgroups.borland.com...
>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