I am able to use producers and consumers inside my local network. To be able to access Kafka from outside my LAN, I added the following to my server.properties:
server.properties