You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see I am fetching all interfaces, filter them by removing those which have a std ip address and then send the message on the remaining interfaces.
But when i run the code the line
Has anybody here also got this error and knows the solution to it? The Broadcast address seams to be correct and I am not manipulating it on the way.
At my first try i just provided the method with the address and the port since this wasn't working i figured might when i provide the concrete interface to use it will work but sadly no changes.
Thx for your help!
bg
The text was updated successfully, but these errors were encountered:
Broadcast and Multicast are similar but different concepts. The reason you get that error is that there are specific 'multicast addresses' that can be used for multicast, and the broadcast address is not one of those. To broadcast, you should just send data to your preferred port at the broadcast addresses using a UdpClient and receive by listening on the same port.
Hi,
I am using the following code to send a broadcast to all network interfaces known to my machine.
As you can see I am fetching all interfaces, filter them by removing those which have a std ip address and then send the message on the remaining interfaces.
But when i run the code the line
Throws the following exception:
The parameter is incorrect.
'host': This is not a valid multicast address.
Has anybody here also got this error and knows the solution to it? The Broadcast address seams to be correct and I am not manipulating it on the way.
At my first try i just provided the method with the address and the port since this wasn't working i figured might when i provide the concrete interface to use it will work but sadly no changes.
Thx for your help!
bg
The text was updated successfully, but these errors were encountered: