Guide to setup an ADC (DC++) Hub on Raspberry Pi

Anshul Ahuja
3 min readJul 3, 2018

--

What is DC++?

DC++ uses ADC protocol for peer to peer file sharing. ( Too geeky??)

In layman’s terms, it helps to share files between users connected on a common local area network. It works on principles similar to torrenting(peer to peer).

Why do I need a DC++ hub?

DC++ is popular in various colleges/institutions for sharing of media files — music, movies, TV series, PDFs etc. It helps to transfer files at fast speeds and get access to media content available with your friend.

A new episode of the latest TV Series released?? Get it from your friend who already downloaded it without the hassle of crawling the whole web for the download link…

Setting up DC++ Hub:

This is a step by step guide to setup an ADC (DC++) Hub on a Raspberry Pi 3 using uhub:

  1. First, download and install a fresh copy of Raspbian. [LINK]
  2. Perform updates
sudo apt-get upgrade                      
sudo apt-get update

3. Install uhub

sudo apt-get install -V uhub

4. Run uhub client.

sudo uhub

The hub will probably not run because of the uhub plugins which are not installed by default. You have to manually disable those plugins to run the hub. These can be easily added later on.

1. Open the plugins.conf file.

sudo nano /etc/uhub/plugins.conf

2. Comment out the following highlighted 3 lines as shown in the screenshot

3. Try running the server again, it should work properly.

5. This is a basic DC Hub which serves at port 1511. To connect to the server, in your DC++ Client enter the hub address as the IP of the raspberry pi: 1511
eg. Local IP of Raspberry: 192.168.1.123
DC Hub : 192.168.1.123:1511

Customizing the DC hub

The next part of the blog deals with customizing the DC hub as per your requirements.

Setting a static IP:

You might want to set up a static IP, as the network switch may assign a different IP to your Raspberry Pi on network change (eg rebooting, IP assigned to another device etc)

sudo nano /etc/dhcpcd.conf

Set the IP you want on the highlighted line and uncomment the line.

Installing Plugins for uhub: [LINK]

  • The plugins have limited support available.
  • They can be downloaded from uhub GitHub repo [LINK]
  • To activate the plugins go to Setting up DC++ hub>>4. Uncomment the lines where the plugins are added.

Conclusion:

In this guide, we walked over the steps to set up a DC++ hub on Raspberry Pi. Enjoy file sharing like never before. Stay tuned for future tech blog posts // … 😉

--

--