add detection if specifed ip address belongs to selected network