Added feature to read ip parameter from command line