Messaging & Cache
Risk: High

Port 1883 β€” MQTT Broker (Internet of Things)

Port 1883 is the standard unencrypted port for MQTT (Message Queuing Telemetry Transport) brokers (Eclipse Mosquitto, EMQX, HiveMQ), connecting IoT sensors, home automation, and lightweight telemetry devices.

PORT NUMBER

1883

PROTOCOL

TCP

DEFAULT PROCESS

mosquitto, emqx

FIREWALL TARGET

1883/tcp

Instant Terminal Fixes for Port 1883

macOS & Linux Terminal
1. Check who is listening on port 1883:
sudo lsof -i :1883 || sudo ss -tulpn | grep ":1883 "
2. Kill process occupying port 1883 (EADDRINUSE fix):
sudo systemctl stop mosquitto || sudo killall mosquitto
3. UFW Firewall Allow rule:
sudo ufw allow 1883/tcp
Windows PowerShell (Admin)
1. Check listening port:
Get-NetTCPConnection -LocalPort 1883
2. Force kill process on port 1883:
Stop-Service mosquitto -Force
3. Docker Port Forwarding Mapping:
docker run -d -p 1883:1883 -p 9001:9001 eclipse-mosquitto

Common Error Encountered

Connection refused: Broker unreachable at tcp://localhost:1883.

Security Advisory & Hardening

Never expose unencrypted MQTT on port 1883 to the public internet. Use MQTT over TLS on port 8883 with client certificates for production IoT deployments.

Frequently Asked Questions

Port 1883 Questions & Answers

Common questions regarding default services, kill commands, and firewall configurations.

Port 1883 is commonly used for MQTT Broker (Internet of Things). Port 1883 is the standard unencrypted port for MQTT (Message Queuing Telemetry Transport) brokers (Eclipse Mosquitto, EMQX, HiveMQ), connecting IoT sensors, home automation, and lightweight telemetry devices.