Port reference › Messaging
Port 8883 · MQTT over TLS
Encrypted MQTT
TCP Messaging Exposure risk: Low
What is port 8883 used for?
MQTT over TLS, used by cloud IoT services such as AWS IoT Core.
Registered port (1024-49151): the range used by ordinary applications.
Security notes
Combine with client certificates or account auth.
Allow port 8883 through the firewall
This port is generally fine to expose publicly.
sudo ufw allow 8883/tcp
sudo ufw status sudo firewall-cmd --permanent --add-port=8883/tcp
sudo firewall-cmd --reload sudo iptables -A INPUT -p tcp --dport 8883 -j ACCEPT New-NetFirewallRule -DisplayName "Allow TCP 8883" -Direction Inbound -Protocol TCP -LocalPort 8883 -Action Allow # Replace sg-0123456789abcdef0 with your security group ID
aws ec2 authorize-security-group-ingress --group-id sg-0123456789abcdef0 --protocol tcp --port 8883 --cidr 0.0.0.0/0 Check whether port 8883 is open
sudo ss -tlpn | grep ':8883 ' netstat -ano | findstr :8883 nc -zv SERVER 8883
# Windows
Test-NetConnection SERVER -Port 8883 sudo lsof -i :8883 Ports used together
- 1883 MQTT · IoT messaging (unencrypted)