Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Finding all local network broadcast addresses
- foreach (NetworkInterface Interface in NetworkInterface.GetAllNetworkInterfaces())
- {
- if (Interface.SupportsMulticast)
- {
- IPInterfaceProperties IPProperties = Interface.GetIPProperties();
- foreach (IPAddressInformation address in IPProperties.MulticastAddresses)
- {
- Console.WriteLine(address.Address);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment