A system and method for determining optimal server in a distributed network for serving content streams