If port is not an integer, convert it