Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UDP Broadcast across VLANs
#1
Hi,
I have a server app that needs to know if there are other instances of the same server app running on the same VLAN or different VLANs.

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. 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. 

I already have a way in mind which is to force the user to add a list of VLANs in a config file, but let's say they forget or make a mistake I want this to be more automatic so that the Master server can discover the other VLANs on the network on its own. Also, I don't want to loop all possible IP numbers from 0 to 255 just to discover if there is a possibility that this IP is in fact a VLAN or not.

Does Indy have anything to help me with this, or maybe broadcast the message to the whole network across VLANs?
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: 2 Guest(s)