parameterize command line for IP and port