Using host, port and prefix from arguments.