Modbus over TCP, the most common industrial control protocol (PLCs, meters, inverters).
Modbus over TCP, the most common industrial control protocol (PLCs, meters, inverters).
Do not expose to the internet. Modbus has no authentication: anyone who can reach port 502 can read and write coils and registers. Never expose it; use segmented OT networks and VPNs.
Registry dates for this port: last modified 2014-06-10.
sudo ss -tlnp 'sport = :502'sudo lsof -nP -i :502sudo netstat -tlnp | grep ':502 'netstat -ano | findstr :502Get-NetTCPConnection -LocalPort 502 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 502Test-NetConnection HOST -Port 502sudo ufw deny 502/tcpsudo iptables -A INPUT -p tcp --dport 502 -j DROPsudo nft add rule inet filter input tcp dport 502 dropNew-NetFirewallRule -DisplayName 'Block TCP 502' -Direction Inbound -Protocol TCP -LocalPort 502 -Action BlockAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.