Connect

From twofo wiki
Jump to navigation Jump to search

Getting Started

twofo is a Direct Connect hub. This means that you will need a suitable Direct Connect client for you computer in order to connect. These clients are available for many operating systems, including Windows, Linux and MacOS.

A basic guide to using DC++ can be found at http://www.b.ali.btinternet.co.uk/DCPlusPlus/gettingStarted.html

Available Clients:

Windows - DC++ - DC++ v0.707 or DC++ v0.699

The newer version(s) of DC++ come with a feature called segmented downloads, for more information click here, or to see how to disable it, please click here.

Linux - Valknut , LinuxDC++

MacOS - MacDC++ , Valknut, Shakespeer - Scroll down for instructions on how to use stunnel with these clients.

Connecting from Off Campus

Connect to hub.twofo.co.uk:4144 (Please do not use stunnel, it confuses other users into thinking you are on campus). This connects on the standard port which typically is not blocked by ISPs. We ask that people off campus set up their client so that the client speed is not set to LAN(T1) or LAN(T3). Other speeds, such as 28.8k, Cable, DSL, 0.1, 0.2 etc are OK. This is to make it easier for other users to distinguish off campus users from on campus when on the hub.

You WILL need port forwarding set up to use DC++ from off campus and behind a router. Please see this guide

Connecting from the Campus Residential Network

Windows Users

The traffic shaper on resnet prevents a normal connection from DC++, so in order to connect you will have to use a program called stunnel

The easiest way to do this is to follow the steps below:

  1. Download the rar file from http://www.twofo.co.uk/resources/stunnel.rar (or http://www.twofo.co.uk/resources/stunnel.zip for if you don't have winrar installed)
  2. Extract ALL the files into a folder.
  3. Then run the stunnel.exe.
  4. Once the icon is in the tray, just set DC++ to connect to localhost:8000 (File -> Quick Connect) and it takes you straight onto twofo.

Once connected you can type /fav in the main chat window to add twofo to your favourite hubs.


If you wish, you can of course download stunnel yourself from http://www.stunnel.org/ , but you would have to configure it yourself to connect to the SSL server hub.twofo.co.uk:4146


YOU WILL HAVE TO BE IN ACTIVE MODE (on the latest versions of DC++, this is called "Direct Connection") AND HAVE THE CORRECT IP IN DC++ IN ORDER TO SEARCH AND DOWNLOAD. You can find your IP at http://checkip.dyndns.org/

There is an extensive guide to any other problems you may have downloading here

It is a very good idea to consider setting up your firewall to block Off Campus connections to DC++ when on campus. Guides to doing this can be found here

Linux Users

If you use Valknut you can simply add a Bookmark to your Hub List for twofo - Address: hub.twofo.co.uk:4146 and then under 'Profile' make sure you've ticked the 'Secure Socket Layer' (SSL) box. (Same as the guide for Valknut for mac users below)

If you use another Direct Connect client such as LinuxDC or DC++ under WINE, you will need to install Stunnel. You can get Stunnel from http://www.stunnel.org/ or your package manager/repositories or use the command "sudo aptitude install stunnel4" depending on your distro. Once installed make the following changes to /etc/stunnel/stunnel.conf


Under 'Service-level configuration' add the following lines:

[twofo]

accept = 127.0.0.1:8000

connect = hub.twofo.co.uk:4146


Now you need to modify these existing lines:

"cert = /etc/stunnel/mail.pem" should be changed to ";cert = /etc/stunnel/mail.pem"

";client = yes" should be changed to "client = yes"


A preconfigured copy of stunnel.conf is available at http://www.twofo.co.uk/resources/stunnel.conf

(You can pick any high numbered port you like instead of 8000)


Next open a root terminal and type the command (stunnel has to be run as root):

stunnel4

Or you could type the following command (should ideally work without modifying the configuration in the stunnel.conf file)

stunnel -c -d 8000 -r hub.twofo.co.uk:4146


Finally, open your Direct Connect client, set yourself to Active mode and put in your IP from http://checkip.dyndns.org/ , and connect to 'localhost:8000'

Mac Users

Valknut

One method is to download Valknut for Mac OS X, http://snaggledworks.com/software/valknut/ choose the latest version and either the 10.3 (Panther) or 10.4 Tiger DMG. Users of Intel Macs will need to download and install Fink in order to be able to install valknut.

Next, customise your settings, making sure you share at least 5GB of data. Add a bookmark with a profile and tick the "Secure Socket Layer" option: this will save you from installing stunnel , set the host as: hub.twofo.co.uk:4146 by doing the following:

1. Open the hub list (Action menu -> Hub list), if it's not already open

2. Click the "Bookmarks" tab

3. Right click anywhere in the bookmarks list and choose "Add" to bring up the add bookmark dialog

4. Put "hub.twofo.co.uk:4146" in the "Host" box

5. Tick the box next to "Profile", so that the Profile button gets enabled

6. Press the Profile button. The dialog gets bigger, and a "Secure Socket Layer" checkbox appears

7. Tick the "Secure Socket Layer" box, and just connect to the hub.

8. Put your IP from http://checkip.dyndns.org into the IP box in settings.

9. Go to File --> Quick Options --> Download Mode: Single to disable multi source downloading if on campus. See the FAQ for a detailed explanation as to why this should be done.

10. Valknut may need to be allowed in the Mac firewall. A guide to this can be found at http://www.umnp2p.com/mac/ Although this is aimed at Shakespeer users, the basic steps ought to be the same. You just have to choose Valknut instead of Shakespeer and set the TCP and UDP ports Valknut uses by default. Otherwise the firewall may need to be switched off in order to download.

This works for sure on Panther Mac OS 10.3.9 and Intel 10.4


Shakespeer

An alternative method (as Valknut isn't a very user friendly program for novice users) is to use Shakespeer.

1) Make sure you have Developer Tools installed. They can be installed on the OS X install Disc under Optional Installs/Xcode Tools/XcodeTools.mpkg ...

2) Download, extract and compile stunnel from stunnel.org - should compile just fine.

3) Download and install SSL Enabler, hosted at the time of writing at http://www.swissdisk.com/support/download/SSLEnabler.dmg

4) Download Shakespeer from http://shakespeer.googlecode.com/files/shakespeer-0.9.7.dmg

5) Start Shakespeer, share some files and folders in order to get it hashing while you complete the rest of the setup

6) Start SSL Enabler. It will ask to install Stunnel. Click yes, the install happens in the background, but doesn't work very well in reality (so yes, that's why we need step 2), but at least it wont ask you again. Then, configure followingly:

Localport: any of your choosing. eg. 8000. Remote Server IP: hub.twofo.co.uk Remote Port: 4146

--> Press Save

7) Go to Shakespeer settings, set network mode to Active, and enter your ip-address manually in the settings (it wont work with automatic mode). Port can be anything really (eg. 9176).

8 ) Go to bookmarks: Add a bookmark.

Name: twofo Address: 127.0.0.1:8000 (or the port you chose earlier, obviously)

9) Connect and enjoy a healthier (??) Valknut-free life at twofo.

10) FINALLY, AND IMPORTANTLY : Make sure your firewall is set up correctly. Go to System Preferences --> Security --> firewall. Make sure it is not set on "Allow only essential services", but rather on "Set Access For specific services and applications". Press the + button in the bottom left and add Shakespeer. Then set it to allow incoming connections. Now, you should be good to go !