Fix the way of getting endpoint port