[refactor] Use `node-ip` module to work with IP addresses.