In the windows machine, I have created a Kafka container which is up and running. I am able to post messages on to the Kafka topic by using the below producer java code.