Allow port to be passed in