Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do i broadcast using Indy UDPClient over a LAN?

107 views
Skip to first unread message

pete

unread,
Jan 31, 2003, 4:09:15 PM1/31/03
to
Hi

How do i broadcast to every machine on a LAN using the indy UDPClient?

I have set the broadcast property to true and am using:
UDPClient.broadcast('hello',8090)
to broadcast the message.

What host address should i use?
The PC's on the network have address's like: 192.168.2.225 and 192.168.1.73.
They all have 255.255.252.0 as a subnet.

Looking on the internet i have found several suggestions and thus tried
255.255.252.255 and 192.168.0.255

Thanks for any suggestions :)

Pete


Maarten Wiltink

unread,
Feb 1, 2003, 4:07:59 PM2/1/03
to
pete wrote in message ...
[...]

>What host address should i use?
>The PC's on the network have address's like: 192.168.2.225 and
192.168.1.73.
>They all have 255.255.252.0 as a subnet.

In binary, your netmask is 1111 1111.1111 1111.1111 1100.0000 0000;
that first host is 1100 0000.1010 1000.0000 0010.1110 0001;
the other host is 1100 0000.1010 1000.0000 0001.0100 1001;

making the network address 1100 0000.1010 1000.0000 00--.---- ----,
and the broadcast address ---- ----.---- ----.---- --11.1111 1111.

The netmask splits a full IP address into a network part (where the
mask has ones) and a host part (where the mask has zeroes). Local
broadcast is host (-1). So the broadcast address is 192.168.3.255.

Groetjes,
Maarten Wiltink

Clive Cooper

unread,
Mar 1, 2003, 4:36:50 PM3/1/03
to

"pete" <deept...@btinternet.com> wrote in message
news:b1eolr$fs2$1...@venus.btinternet.com...
The first and last address of each network is unavailable. These are always
unavailable and are known as the network and the broadcast addresses. The
network address is the number we would use when we are describing the entire
network (e.g. 192.168.1.0, subnet 255.255.255.0). The broadcast address is
used to communicate to all the machines on the network (e.g. 192.168.1.255
would be the broadcast for network mentioned above).

The above was cut from
http://www.star.net.uk/support/support_technology_tcpip.asp

Clive.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003


0 new messages