NSURL port returns an integer value

The original return value was a string, but it was not returning
anything correctly as the port selector returns a NSNumber and that
needs to be converted to an integer value for return..