I want to connect by specifying the IP address with M2MQTT

I made mosquitto in docker a broker.

Suppose my PC IP address is “” 10.0.0.11 “.

I wrote code like this.

MqttClient client = new MqttClient ("10.0.0.11", 1883, false, null, null, MqttSslProtocols.TLSv1_2);

However, when the Connect method was executed, “isConnect” was false.

client.Connect (clientId);

If you specify the host name of HIVE MQ, it works.(HIVE MQ)

MqttClient client = new MqttClient ("broker.mqttdashboard.com");

Please tell me how to enable connection by specifying IP address.

Thank you

Source: StackOverflow