Guest User

Untitled

a guest
Aug 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Finding all local network broadcast addresses
  2. foreach (NetworkInterface Interface in NetworkInterface.GetAllNetworkInterfaces())
  3. {
  4. if (Interface.SupportsMulticast)
  5. {
  6. IPInterfaceProperties IPProperties = Interface.GetIPProperties();
  7. foreach (IPAddressInformation address in IPProperties.MulticastAddresses)
  8. {
  9. Console.WriteLine(address.Address);
  10. }
  11. }
  12. }
  13. }
Add Comment
Please, Sign In to add comment