Allow port to be configured

This allows the port to be configured when declaring the class.