To resolve the CONNECTION_REFUSED error and establish MQTT communication:
- Verify MQTT broker settings
- Check network connectivity
- Configure MQTT client correctly
- Enable debugging for tracing
- Update LWIP library if necessary
If issues persist, consider firewall/router configurations, broker settings, or network congestion.
Also make sure that the Ethernet port and cable are well appropriately put in place.