public void setAddress(InetAddress address) {
    	if (address == null) {
    		this.address = null;
    	} else if (!(address instanceof Inet4Address)) {
            throw new IllegalArgumentException("only IPv4 addresses accepted");
        } else {
        	this.address = address;
        }
    }