a method of detecting proximity between a media proxy and a client uses a proximity probe to query a plurality of media proxies , forcing the media proxies to respond to a proximity server . the proximity server uses an algorithm to determine which media proxy is closest to the client based on the responses . in an alternate embodiment , the same sorts of proximity probes may be used to determine if two media endpoints have a direct connection such that they may bypass a media proxy .