Port 8883: MQTT over TLS

Port 8883 (TCP) is used by MQTT over TLS. Encrypted MQTT for IoT devices.

8883Port
TCPProtocol
secure-mqttIANA service name
IoT & industrialCategory

Port range

8883 is a registered port (range 1024–49151). Any user can bind to it; IANA records which service registered the number.

Security

Port 8883 should not be reachable from the public internet. Restrict it to trusted networks or a VPN, and scan your public IP to confirm it is closed.

Open port 8883 in a firewall

ufw         sudo ufw allow 8883/tcp
iptables    sudo iptables -A INPUT -p tcp --dport 8883 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=8883/tcp
Windows     New-NetFirewallRule -DisplayName "MQTT over TLS 8883" -Direction Inbound -Protocol TCP -LocalPort 8883 -Action Allow

Check if port 8883 is open

nc -vz example.com 8883
Test-NetConnection example.com -Port 8883   # PowerShell
sudo ss -tulpn | grep ':8883 '   # what is listening locally (Linux)

Other iot & industrial ports

Frequently asked questions

What is port 8883 used for?
MQTT over TLS. Encrypted MQTT for IoT devices.
Is port 8883 TCP or UDP?
TCP.