The first thing is to check that your router/modem/ISP is not blocking port 1883.
I did. The issue was my ethernet cable