Netstat
To find IP addresses accessing your computer:# netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
Category: netstat - Visits: 2850
No Comments - Edit - Delete
finding what ports are used
Use the following to find out what ports are being used on linux computernetstat -anp --ip
Category: netstat - Visits: 2648
No Comments - Edit - Delete