Adds Client constructor that allows port to be passed in as an argument.