begin
      server = get_leader_url server, port
      # remove comment for debugging purpose
      # puts(server)