You can use netstat command for command line network utility which helps to display network connections.
To check listening ports you can use below commands:
To check listening ports you can use below commands:
Code:
netstat --listen
lsof –i