I know it does not directly answer the question, but still relevant.
If you want to see the IP address of the consumer that is currently connected to a partition use the following command
kafka-consumer-groups.sh --bootstrap-server my-kafka-1:9092 --group my-consumer-group --describe --members
E.g.
# kafka-consumer-groups.sh --bootstrap-server my-kafka-1:9092 --group my-consumer-group --members --describe --verbose | grep name-of-topic
my-consumer-group consumer-my-consumer-group-1-40adb273-fd3d-46a3-9cd4-9c8c4a4da486 /10.8.36.66 consumer-my-consumer-group-1 1 name-of-topic(1)
my-consumer-group consumer-my-consumer-group-1-47fc5618-7f07-4b3e-a2a9-cf3c26ee3536 /10.8.9.79 consumer-my-consumer-group-1 1 name-of-topic(2)
my-consumer-group consumer-my-consumer-group-1-005da938-7c59-44c3-8d4c-4371fa222d15 /10.8.36.22 consumer-pmy-consumer-group-1 1 name-of-topic(0)