abstracted hostname and port number to parameters