title: How to detect Internet connection speed with Java?
body: <p>In my Java app, how do I detect how fast the Internet connection speed is ? For instance, I use AT&amp;T Fast DSL at home, I wonder if there is a way I can write a method that does the following :</p>
  
  <pre><code>int getInternetConnectionSpeed()
  {
     ...
  }
  </code></pre>
  
  <p>Which will return a number in kbps, something like 2800kbps [ 2.8 M ]</p>
  
  <p>Edit :
  The reason I'm asking, is in my app, I can open multiple Internet streams, depending on the users' Internet connection speed, I want it to auto determine how many streams to open without chocking the app.</p>