Replacing ifconfig with hostname for getting IPs list

- The statement "hostname -I" returns a list of IPs of all active
  broadcasting interfaces.
- No string parsing needed.
- Independent from locales.