title: Java preventing other network connections
body: <p>I have a java application that does two things with an internet connection.  The first is a simple port 80 connect to send some data:</p>
  
  <pre><code>try {
  
          url = new URL(req);
          URLConnection conn = url.openConnection();
          conn.setConnectTimeout(tOut);
          conn.setConnectTimeout(1000);
          conn.setRequestProperty("Connection", "close");
          conn.setReadTimeout(urlTimeout);
  
          // open the stream and put it into BufferedReader
          BufferedReader br = new BufferedReader(
                      new InputStreamReader(conn.getInputStream()));
  
          while ((inputLine = br.readLine()) != null) {
              Line = Line + inputLine ;
          }
  
      } catch (MalformedURLException e) {
          //e.printStackTrace();
      } catch (IOException e) {
          //e.printStackTrace();        
      }
  </code></pre>
  
  <p>The second is a ssh connection that looks for information coming from the server. The connection part is:</p>
  
  <pre><code>        con = SshConnector.createInstance();
          transport = new SocketTransport(hostname, port);
                      try {
                          ssh = con.connect(transport, username);
                      } catch (Exception es) {
  
                      }
  
          PasswordAuthentication pwd = new PasswordAuthentication();
  
          do {
              pwd.setPassword("password");
          } while (ssh.authenticate(pwd) != SshAuthentication.COMPLETE
                  &amp;&amp; ssh.isConnected());
  </code></pre>
  
  <p>Then I loop looking for input from the server.</p>
  
  <p>I have one user that is on a Verizon Jetpack.  When my application is running the application runs slow, he cannot connect his VPN to his office, do a browser speed test, etc.  Close my application and the VPN and browser works fine.  </p>
  
  <p>I do not have that problem and many others running my application are fine.  Is there something I am overlooking or can change to keep from apparently shutting down his jetpack?</p>
  
  <p>Tnx</p>