Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UDP Broadcast across VLANs
#2
(12-05-2024, 09:21 AM)Ahmed Sayed Wrote: When I try using the Broadcast function in the UDP client/server and using the IP address "255.255.255.255," it only sends the message to the current VLAN and local machine.

Makes sense, as broadcasts are not supposed to cross VLAN/subnet boundaries.

(12-05-2024, 09:21 AM)Ahmed Sayed Wrote: But when I use that VLAN IP address something like "192.168.5.255" it does broadcast the message to all the servers that listen to the port I defined. 

Yes, when you want to broadcast to a specific VLAN/subnet, you have to use that VLAN/subnet's particular broadcast IP. Otherwise, don't use a broadcast at all, use unicast or multicast instead.

(12-05-2024, 09:21 AM)Ahmed Sayed Wrote: Does Indy have anything to help me with this

Not for the specific issue of broadcasting across VLANs, no. It does have multicast components, though.

(12-05-2024, 09:21 AM)Ahmed Sayed Wrote: or maybe broadcast the message to the whole network across VLANs?

Not by default, no. You would need extra help from your network hardware to forward broadcasts from one VLAN/subnet to another. You can't control that from your program code.

Reply


Messages In This Thread
UDP Broadcast across VLANs - by Ahmed Sayed - 12-05-2024, 09:21 AM
RE: UDP Broadcast across VLANs - by rlebeau - 12-05-2024, 04:58 PM
RE: UDP Broadcast across VLANs - by Ahmed Sayed - 12-05-2024, 05:51 PM
RE: UDP Broadcast across VLANs - by rlebeau - 12-05-2024, 08:06 PM
RE: UDP Broadcast across VLANs - by Ahmed Sayed - 12-06-2024, 08:43 AM
RE: UDP Broadcast across VLANs - by rlebeau - 12-06-2024, 04:15 PM
RE: UDP Broadcast across VLANs - by Ahmed Sayed - 12-07-2024, 02:56 AM
RE: UDP Broadcast across VLANs - by rlebeau - 12-07-2024, 06:26 AM
RE: UDP Broadcast across VLANs - by Ahmed Sayed - 12-07-2024, 11:42 AM
RE: UDP Broadcast across VLANs - by rlebeau - 12-07-2024, 09:08 PM
RE: UDP Broadcast across VLANs - by Ahmed Sayed - 12-09-2024, 12:43 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)