HassAgent Client - MQTT (local) doesn't work

hello, I’m really new to Home assistant. I have already setup a custom domain for accessing the dashboard outside my network. as I was switching all the instances where homeassistant.local was I couldn’t the MQTT section of HassAgent for windows to work while the Home Assistant Api section has a connection.

Can someone help me?
Thanks in advance