Added an accessor that returns the port as an integer.