TCP/502 is the standard port for Modbus TCP, an industrial protocol for PLCs (Programmable Logic Controllers) and SCADA systems. No built-in auth or encryption — originally designed for isolated OT networks. Exposing 502 to the internet is catastrophic (Shodan lists 20k+ exposed Modbus devices). Fix: IP whitelist + VPN, or proxy through Modbus Secure (TCP/802).
Below: details, example, related, FAQ.
# Check if the port is open
$ nc -zv 192.168.1.10 502
# Nmap scan
$ nmap -p 502 --script modbus-discover 192.168.1.10
# Python pymodbus — read registers
from pymodbus.client import ModbusTcpClient
client = ModbusTcpClient('192.168.1.10', port=502)
resp = client.read_holding_registers(0, count=10)
print(resp.registers)Ping sends ICMP packets to a host and measures response time. Port scanning checks which TCP ports are open and accepting connections — helping diagnose serviceavailability issues.
Choose packet count (3, 4, 6, 10). Stats: min/avg/max latency and packet loss.
Check 14 key ports: HTTP, HTTPS, SSH, FTP, SMTP, MySQL, PostgreSQL, and more.
Testing from our server — see site availability from outside, not just your local network.
Need constant monitoring? Create a monitor — checks every minute with notifications.
availability diagnosis
TCP port scanning
connection debugging
basic health check
Ping check history, host availability monitoring and downtime alerts.
Sign up freeIf you run industrial automation (factory, energy, water) this is a key ICS port. A leak has physical consequences (stopping a pipeline).
Never in plain-text. Either VPN or Modbus Secure (802) with TLS.
OPC UA (4840) — modern, secure, structured data. New projects pick it.