based on locations of client and servers