Mqtt server rejecting connection from ESP8266 switch device

Hi I’m pulling my hair out over this problem and made some progress, but I’m stumped with why the Mosquitto broker is rejecting the connection from my ESP switch device, stating socket error, see log:

[16:48:01] INFO: Setup mosquitto configuration
[16:48:01] WARNING: SSL not enabled - No valid certs found!
[16:48:01] INFO: Found local users inside config
[16:48:02] INFO: Initialize Hass.io Add-on services
[16:48:02] INFO: Initialize Home Assistant discovery
[16:48:02] INFO: Start Mosquitto daemon
1592408882: mosquitto version 1.6.3 starting
1592408882: Config loaded from /etc/mosquitto.conf.
1592408882: Loading plugin: /usr/share/mosquitto/auth-plug.so
1592408882: |-- *** auth-plug: startup
1592408882: ├── Username/password checking enabled.
1592408882: ├── TLS-PSK checking enabled.
1592408882: └── Extended authentication not enabled.
1592408882: Opening ipv4 listen socket on port 1883.
1592408882: Opening ipv6 listen socket on port 1883.
1592408882: Opening websockets listen socket on port 1884.
1592408882: Warning: Mosquitto should not be run as root/administrator.
1592408885: New connection from 172.30.32.1 on port 1883.
[INFO] found homeassistant on local database
1592408886: New client connected from 172.30.32.1 as auto-8159BCF7-5E6B-75DE-2C03-9F0399843F7D (p2, c1, k60, u’homeassistant’).
1592409187: New connection from 192.168.1.143 on port 1883.
1592409187: Socket error on client , disconnecting.
1592409192: New connection from 192.168.1.143 on port 1883.
1592409192: Socket error on client , disconnecting.

I have no idea what the ip 172.30.32.1 is, but the 192.168.1.143 is the device I’m trying to connect.

Any help greatly appreciated

Edit: From the ESP8266 serial port I get this:

WiFi connected
IP address:
192.168.1.143
Attempting MQTT connection…failed, rc=-2 try again in 5 seconds
Attempting MQTT connection…failed, rc=-2 try again in 5 seconds
Attempting MQTT connection…failed, rc=-2 try again in 5 seconds