## 5 First time configuration

Decide if you want to use the internal router or the external router (advised).

### 5.1 Configuration for the internal router

Launch iMule and go to Preferences -> I2P connection.

1. Check the top-most box called "Use internal I2P router" This enables some configuration boxes : SAM port, I2P proxy port, TCP port, UDP port, and 7 other bandwidth options.
2. Make sure the default TCP and UDP ports are accessible from the Internet, or enter other values in the corresponding boxes so that these ports are accessible from internet. Configure your firewall and/or your router and/or your modem so that they are accessible from internet.

   The other following options are not vital :

3. You can give the IP or the hostname of your router (for instance: mycomputer.dyndns.org) in the "IP/dynIP" box, after having checked the "dynamic address" option. This can accelerate the starting process of the I2P router.
4. Configure the 4 max. bandwidth boxes. They concern the maximum total bandwidth used by the I2P router, and not only by your iMule transfers.
5. Configure the anonymity level, i.e. the minimum number of I2P peers relaying your messages (incoming and outgoing). 1 or 2 are good values. The higher the values are, the slower the connections will be.
6. Configure the ratio of your bandwidth you share for relaying messages from other peers. CHECK that points 4) and 6) allow AT LEAST 16 kB/s of shared bandwidth. This is the minimum for a correct running of the I2P network.
7. You can configure the SAM port of the internal router or keep the standard 7656 value if no other application is using this port. SAM is the protocol iMule uses to communicate with the I2P router (even the internal router), and is also used by other softwares, like the anonymous bittorrent software I2P-BT. So, when iMule's internal router is launched, other apps can use its SAM port as they would do with the standard router.
8. You can configure the I2P proxy port or keep the standard 4444 value. This is also intended for use by other apps such as web browser : configure your browser to use the HTTP Proxy at 127.0.0.1:4444, and it will be able to browse eepSites (www over I2P) anonymously (check this by browsing www.imule.i2p for instance !)

### 5.2 Configuration for the external router

THIS PART HAS BEEN UPDATED FOR I2P ROUTER VERSION 0.6.5. So, if you are running an older router, please update it !

1. You first have to configure your I2P router so that it launches the SAM server at startup. This SAM server is used by iMule to communicate with the router.
   - Launch a web navigator and enter the address of the I2P router console in the address bar. This will probably be http://127.0.0.1:7657.
   - Click on Configuration
   - Click on Clients
   - Check the box near SAMBridge
   - Finally, click on 'Save Client Configuration'
2. Launch iMule and go to Preferences -> I2P connection. Uncheck the "internal router" box.
3. Enter the IP address of your router in the first text box. It will probably be 127.0.0.1 if the router is running on the same computer as iMule.
4. The "port" box is not used anymore by iMule. Do not bother.
5. Enter the SAM port of your router (if you did not change its value, it probably is 7656)
6. Enter the HTTP Proxy port of your I2P (4444 by default). The I2P proxy is used by iMule for downloading information from www.imule.i2p (the nodes.dat file for bootstraping peer connections, and a version check file).
7. Configure the anonymity levels of iMule's connections (as explained for the internal router).