support for loopback ip addresses in isLocalHost