Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.io.IOException: No available port for the BitTorrent client! #132

Closed
dessalines opened this issue May 21, 2015 · 1 comment
Closed

Comments

@dessalines
Copy link
Contributor

I'm getting this error, and have a couple of questions:

Here's my code I run for each torrent file I'm sharing:

    Client client = new Client(InetAddress.getLocalHost(),
                SharedTorrent.fromFile(torrentFile, outputParent));

        client.setMaxDownloadRate(50.0);
        client.setMaxUploadRate(50.0);
        client.share();
  1. Do I have to instantiate client for every new torrent file? It seems to me that I should have a single client, that can add or remove torrent files.

  2. If this is the case, then the port ranges, should be similar to other clients, usually, 49152-65535

@mpetazzoni
Copy link
Owner

Yes, a Client in this case deals with a single torrent file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants