Implemented the getInstanceByIpAddress functionality