This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Number of open (active) connections

0

Hi all, Don't eat me alive please, I'm a total noob to this area of computing. My ISP has informed me that his firewall resets a customer's broadband if the customer opens more than 30 connections. This is to prevent file-sharing causing contention issues apparently. My problem is that I have no idea how many connections the two PCs here at home have open (or active?) at any one time. He has told me to download WireShark and use it to find this information out. The problem is that I have no clue how to use WireShark and while I am trying to read up on it, some of the terminology is beyond me. So to my question: Can Wireshark show me how many connections I have open on both PCs here at home? (I don't need the total number of connections opened, I need the current number of open connections, and a min & max number would be great also). If so, can you explain to me how to do it please? If you need further info please just ask. Thanks.

asked 20 Aug '12, 11:01

r011ingthunder's gravatar image

r011ingthunder
6114
accept rate: 0%


One Answer:

3

It might be possible to beat it into doing so, but it'd be difficult - you'd have to track TCP connection opens and closes. (I'm assuming here that "connections" refers to TCP connections.)

If you're willing to try the command line, the netstat command, on most if not all of the OSes running on PCs, may be the best tool to use. See the Wikipedia page for it.

netstat -p tcp should, on most operating systems, including Windows, report all the "active" TCP connections. When I tried it on my Windows XP (virtual) machine, it listed some connections to "localhost", which are connections from the machine to itself rather than to a machine on the Internet, so not all of the connections it lists will necessarily count against the 30-connection limit (ignore the ones that mention "localhost").

netstat -sp tcp will, at least on Windows, list connection statistics; on my XP machine, it has a "Current Connections" count (which would probably include "localhost" connections), but has no "maximum number of connections that have ever been open simultaneously" count (the minimum would probably be 0 on most if not all machines, given that, when the machine boots, it has no connections open, so that's probably not a useful number).

answered 20 Aug '12, 13:45

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

edited 20 Aug '12, 13:46

Thanks! The netstat -sp tcp does exactly what I want. It doesn't give a running total unfortunately, but I can keep trying it at peak times on both machines. Just from initial viewings it would seem I'm nowhere near the 30 limit. Is it normal for ISPs to throttle broadband that way? Oh and yes, of course a minimum number would be useless, sorry about that! Thanks again. For info above works on Vista too.

(20 Aug '12, 14:50) r011ingthunder