8883Port
TCPProtocol
secure-mqttIANA service nameIoT & 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)