added host comparison checking, if either of the cacheserver, dbserver, messagequeue server is the same as the app server then we use 'localhost'