OSQA is unmaintained. Help us figure out where to go from here.

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

accept rate: 0%

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).

permanent link

answered 20 Aug '12, 13:45

Guy%20Harris's gravatar image

Guy Harris ♦♦
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
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 20 Aug '12, 11:01

question was seen: 11,156 times

last updated: 20 Aug '12, 15:02

p​o​w​e​r​e​d by O​S​Q​A