Fix a way in how we determine if a request was local or remote - we were string comparing the hostnames, change this to resolve the hostnames to their IP address and then compare that to be more foolproof. TRQ-1946.