use set comprehension in utils.socket_util.ip4_addrs