fix get server ip if change port