Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To make Mosquitto client utilize the Ethernet interface instead of the loopback interface, you need to specify the IP address of the Ethernet interface in the client command. You can do this by adding the "-h" option followed by the IP address of the Ethernet interface.

For example, if the IP address of the Ethernet interface is 192.168.1.10, the Mosquitto client command will be:

mosquittosub -h 192.168.1.10 -t topicname

This will make the Mosquitto client connect to the MQTT broker using the Ethernet interface instead of the loopback interface.