port must be an int (thanks JY for patch)