UDP broadcast ignores port to use

Giganews Newsgroups
Subject: UDP broadcast ignores port to use
Posted by:  Koen (ko…@home.net)
Date: Sun, 9 Mar 2008

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