O'Reilly logo
  • Shashank Hiremath thinks this is interesting:

The real usage of the preceding two parameters is when you make use of bridged connections where your internal host.name and port number could be different from the one which the external parties need to connect to.

From

Cover of Apache Kafka Cookbook

Note

we only need it when we do bridged connections.