Fix support for specifying host and potn