Use "hostname -I" for ip address detection