title: JGit Connection refused
body: <p>I'd like to clone remote repository, add file and push file back but getting exception:</p>
  
  <pre><code>org.eclipse.jgit.api.errors.TransportException: git://192.168.1.1/abc: Connection refused: connect
      at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137)
      at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
      at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)
  </code></pre>
  
  <p>Code is:</p>
  
  <pre><code>UsernamePasswordCredentialsProvider user = new UsernamePasswordCredentialsProvider(userId, userPass);
  File workingCopy = new File(REPO_PATH);
  Git.cloneRepository().setCredentialsProvider(user).setURI(uri).setDirectory(workingCopy).setBranch("master").setBare(false).setRemote("origin").setNoCheckout(false).call();
  </code></pre>
  
  <p>Now remote repo is on localhost, and when I use "localhost" in path everything works fine and when use IP address I'm getting exception like above. Port 9418 is unlocked.</p>
  
  <p>Any ideas?
  Thanks in advance.</p>