Cant connect to mqtt mosquitto

So i am having an issue connecting to my mqtt broker/server. The odd thing is i can connect to it just fine using an IOS mobile device but when i try connecting directly through the web interface of homeassistant it fails to connect.

Have you triple checked your credentials and broker IP address in your config?

Are you getting any errors?