Changed IsNisLocal() to ignore port and protocol. Added tests.