How do you increase your share on I2Pd?

All around i2pd - a different implementation of the I2P protocol
Post Reply
Chef K
Posts: 26
Joined: 14 Apr 2025 12:54

How do you increase your share on I2Pd?

Post by Chef K »

On the Java-I2P router, they give you a convenient way of increasing your share via a browser based user interface. They even automated this by basing it on your internet speed! But I don't see that on I2Pd.

What kind of configuration is necessary to increase your sneed above your feed?

All help is appreciated.
-Chef K
User avatar
lgillis
Posts: 207
Joined: 20 Oct 2018 12:52
Contact:

Re: How do you increase your share on I2Pd?

Post by lgillis »

A convenient way to customize the system-wide I2Pd configuration is provided by Emacs. After opening i2pd.conf and setting the bandwidth/share to the desired value, the file is saved as usual. The configuration is reloaded with the shell command M-! systemctl reload i2pd.service. (The tab completion can be used.) Alternatively, the configuration adapted to personal requirements can also be reloaded via the i2pd webconsole.

Now comes the most important part. Your router must be online for as long as possible so that other routers consider it reliable.
    I2P preserves your right to informal self-determination.
Chef K
Posts: 26
Joined: 14 Apr 2025 12:54

Re: How do you increase your share on I2Pd?

Post by Chef K »

So something like my phone may be better to use as a contributing router than my laptop?

What parameter needs to be configured in i2pd.conf || tunnels.conf? I wasn't able to find it in the documentation.
anikey
Posts: 98
Joined: 30 Nov 2023 20:08

Re: How do you increase your share on I2Pd?

Post by anikey »

Edit the file i2pd.conf (not tunnels.conf)

The example file for this is located here: https://github.com/PurpleI2P/i2pd/blob/ ... /i2pd.conf
(if you didn't have it installed as it usually is by default)

To remove bandwidth limit and increase share, write at the top of the file (not inside a section):

Code: Select all

bandwidth = X
share = 100
Instead of X you can put the KB/s that you restrict the router to (but it might not perfectly follow the limit). Leave the X to make it unlimited.
Instead of 100 you can set a share percentage.

Check https://i2pd.readthedocs.io/en/latest/u ... iguration/ for more info

Running i2p/i2pd a phone can be suboptimal if it uses various battery optimisation tricks. And even then, it can run down your battery quicker as it has to keep the wifi module powered all the time and transmit and receive, etc.
It's fine to not run i2p 24/7. If you can, that's better. But if you can't - don't worry.
You can also get one of those mini board computers like raspberry pi and run i2pd on that.
Chef K
Posts: 26
Joined: 14 Apr 2025 12:54

Re: How do you increase your share on I2Pd?

Post by Chef K »

My phone actually has pretty good battery life since I run it with power saving mode on all of the time.

With 45% of my battery, I still have 10 hours of battery life left. And even though I excluded I2Pd from having battery optimizations, it uses 0.5% of my battery. So having it use 1% by this change shouldn't worry me.

And I do have a few raspberry pi's (a 2b and a 3) so I could definitely help the network by putting them to good use.
anikey
Posts: 98
Joined: 30 Nov 2023 20:08

Re: How do you increase your share on I2Pd?

Post by anikey »

Are you sure your phone does not suspend the i2pd app when you're not using it?
You may check by trying to access your phone i2pd from the laptop at different times.

For the raspberry pi, the general recommendation is to run i2pd (not java i2p) because it uses less resources than java i2p.
Chef K
Posts: 26
Joined: 14 Apr 2025 12:54

Re: How do you increase your share on I2Pd?

Post by Chef K »

anikey wrote: 29 Apr 2025 08:54 Are you sure your phone does not suspend the i2pd app when you're not using it?
You may check by trying to access your phone i2pd from the laptop at different times.
Is there a way to use your phone AS a I2P Hotspot Tunnel?

I'm probably going to have to SSH Into it which could require rooting the phone...

Also, if the app did get suspended when I'm not using it. I'm not sure If would get uptimes of the order of days on end (which I do)...
anikey
Posts: 98
Joined: 30 Nov 2023 20:08

Re: How do you increase your share on I2Pd?

Post by anikey »

Chef K wrote: 29 Apr 2025 19:03 Is there a way to use your phone AS a I2P Hotspot Tunnel?

I'm probably going to have to SSH Into it which could require rooting the phone...
You don't have to root. There are multiple options:
- you can just configure the tunnel to listen on 0.0.0.0 instead of localhost, it will be possible to access the tunnel from your LAN
- you can install the Termux app (if i remember correctly, it's on F-Droid), set a password with passwd, and (install and) run sshd - this will basically run an ssh server from the termux environment, which you can then use to port forward the tunnel
Post Reply