Code example for NetworkInterface

Methods: getInetAddresses

0
        } 
        return true; 
    } 
 
    protected List<InetAddress> getInetAddresses(NetworkInterface networkInterface) {
        return Collections.list(networkInterface.getInetAddresses());
    } 
 
    public InetAddress getMulticastGroup() {
        try { 
            return InetAddress.getByName(Constants.IPV4_UPNP_MULTICAST_GROUP);
        } catch (UnknownHostException ex) {
            throw new RuntimeException(ex);
        } 
    } 
 
    public int getMulticastPort() { 
        return Constants.UPNP_MULTICAST_PORT; 
    } 
 
Connect your IDE to all the code out there  Get Codota for Java