Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Mar : UDP broadcast ignores port to use
| Subject: | UDP broadcast ignores port to use |
| Posted by: | "Koen" (ko..@home.net) |
| Date: | Sun, 9 Mar 2008 17:07:35 |
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