A function to find members given an IP (with some tests)

Signed-off-by: emanuele <emanuele45@gmail.com>