added interface information helper method
implemented fix for wrong ipaddress detection