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..
Merge pull request #165 from shaosean-tk/master

Bug fix: NSURL port now correctly returns an Integer value instead of a String