commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
find all computer connected to my host through TCP connection.
count connections, group by IP and port
netstat has two lines of headers:
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
Added a filter in the awk command to remove them
Useful for checking the number and state of TCP connections.
I cannot run Tomcat from Eclipse. It says that there?s other process that is running on port 8080, but I don?t know what is the process, and how to stop it from the Services manger in Windows. So here?s how you can kill and find out what is that process:
To find out what PID 8080 was (hopefully not a trojan)
I typed tasklist /FI ?PID eq 8080″
taskkill /F /PID 2600
shows opened ports on machine in continuous mode (refreshing every 10 sec)
Not really better - just different ;)
There's probably a really simple solution out there somewhere...
Gets the application's name that's listening from the port 8080 through IPv6
This command is primarily going to work on linux boxes.
and needs to be changed, for example
Tested on CentOS, Ubuntu, and MacOS.
Displays a connection histogram of active tcp connections. Works even better under an alias. Thanks @Areis1 for sharing this one.
Shows you all listening tcp/udp ports, and what program has them open(depending on rights)
Counts TCP states from Netstat and displays in an ordered list.