Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Netstat command for active TCP connections only

I am trying to come up with a command that would show the following information for active TCP connections

-Remote IP address -Local IP address -Process ID of the connected process -Name of the connected Process -Local TCP Port -Remote TCP Port

I have the following command but I am not sure it satisfies all of the above

netstat -a -b -n -o -p tcp

Comments