detect container's ip address automatically when not specified in config file.