lsof -i[46] [protocol][@hostname|hostaddr][:service|port]
46: IPv4 or IPv6
protocol: TCP or UDP
hostname: Internet host name
hostaddr: IPv4 address
service: /etc/service service name
port --> port number
# lsof -i :22 # for example
2023-12-19 08:19:28
lsof -i[46] [protocol][@hostname|hostaddr][:service|port]
46: IPv4 or IPv6
protocol: TCP or UDP
hostname: Internet host name
hostaddr: IPv4 address
service: /etc/service service name
port --> port number
# lsof -i :22 # for example