@@ -0,0 +1,1183 @@
+package com.lightbulbz.net;%0A%0Aimport java.net.InetAddress;%0Aimport java.net.InterfaceAddress;%0Aimport java.net.NetworkInterface;%0Aimport java.net.SocketException;%0Aimport java.util.Collection;%0Aimport java.util.Enumeration;%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0A/**%0A * Created by kevin on 6/3/15.%0A */%0Apublic class NetUtils %7B%0A    public static Collection%3CInetAddress%3E getBroadcastAddresses() %7B%0A        Set%3CInetAddress%3E broadcastAddresses = new HashSet%3C%3E();%0A        try %7B%0A            Enumeration%3CNetworkInterface%3E ifaces = NetworkInterface.getNetworkInterfaces();%0A            while (ifaces.hasMoreElements()) %7B%0A                NetworkInterface iface = ifaces.nextElement();%0A                if (iface.isUp() && !iface.isLoopback() && !iface.isPointToPoint()) %7B%0A                    for (InterfaceAddress addr : iface.getInterfaceAddresses()) %7B%0A                        if (addr.getBroadcast() != null) %7B%0A                            broadcastAddresses.add(addr.getBroadcast());%0A                        %7D%0A                    %7D%0A                %7D%0A            %7D%0A        %7D catch (SocketException ex) %7B%0A            ex.printStackTrace();%0A        %7D%0A        return broadcastAddresses;%0A    %7D%0A%7D%0A

Move getBroadcastAddresses into library