It's not hanging. It is not hearing anything. Hit control-C to stop listening with mosquitto_sub.
On mine I see the loop messages every couple seconds basically immediately. I hit control-C after the first loop packet was displayed.
$ mosquitto_sub -d -t simulator/# -h 192.168.1.232
Client null sending CONNECT
Client null received CONNACK (0)
Client null sending SUBSCRIBE (Mid: 1, Topic: simulator/#, QoS: 0, Options: 0x00)
Client null received SUBACK
Subscribed (mid: 1): 0
Client null received PUBLISH (d0, q0, r0, m0, 'simulator/loop', ... (1255 bytes))
{"dateTime": "1683403745.0", "usUnits": "1.0", "outTemp_F": "30.714330964267866", "inTemp_F": "64.4867113429638", "barometer_inHg": "31.022674842890833", "pressure_inHg": "31.022674842890833", "windSpeed_mph": "0.3866257855458439", "windDir": "346.0814717203496", "windGust_mph": "0.46395094265501235", "windGustDir": "346.0814717203496", "outHumidity": "77.68024528672494", "inHumidity": "27.026577314072398", "radiation_Wpm2": "911.9394844177033", "UV": "12.767152781847846", "rain_in": "0.0", "txBatteryStatus": "1.0", "windBatteryStatus": "0.0", "rainBatteryStatus": "0.0", "outTempBatteryStatus": "1.0", "inTempBatteryStatus": "0.0", "consBatteryVoltage_volt": "12.0", "heatingVoltage_volt": "12.876232859402455", "supplyVoltage_volt": "12.0", "referenceVoltage_volt": "11.725352060455753", "rxCheckPercent": "58.589515129677444", "altimeter_inHg": "31.812916691917174", "appTemp_F": "25.97065488238462", "cloudbase_foot": "2093.2738825982638", "dewpoint_F": "24.583925880835505", "heatindex_F": "30.714330964267866", "humidex_F": "30.714330964267866", "inDewpoint_F": "29.791543533239455", "maxSolarRad_Wpm2": "0.0", "rainRate_inch_per_hour": "0.0", "windchill_F": "30.714330964267866", "hourRain_in": "0.0", "rain24_in": "0.0", "dayRain_in": "0.0"}
Client null received PUBLISH (d0, q0, r0, m0, 'simulator/loop', ... (1236 bytes))
^CClient null sending DISCONNECT
Test your mosquitto server...
- subscribe in one window => mosquitto_sub -h x.x.x.x -t junk/testing -u mosquittoUserHere -P mosquittoPassHere -m testing123
- publish a test in another => mosquitto_pub -h x.x.x.x -t junk/testing -u mosquittoUserHere -P mosquittoPassHere
If that doesn't work, your mosquitto setup is messed up.
It ain't rocket science unless you are running a funky os variant or you have enabled packet filters blocking incoming traffic to the MQTT or Websockets ports.