Parameterize hostname and port