Automatic Server selection, Possible?

If I have 2 servers. One in location A, and another in location B. The first one (A) allows Internet backups and the second one (B) is LAN only.
Is it possible to have the client automatically use (with no user intervention):

  • Server A when I am in the same LAN as A?
  • Server B when I am in server B’s LAN?
  • Server A (over the Internet) when I am in neither server A or B’s LAN.

Yes, should already work. It only connects to the Internet server, if there is no local server.