altered bash command for detecting the system's ip address