functions: return ip address