anthonycr / Lightning-Browser

A lightweight Android browser with modern navigation
http://acrdevelopment.org
Mozilla Public License 2.0
2.19k stars 797 forks source link

Lightning does not work with i2pd #648

Open mathiasfriman opened 6 years ago

mathiasfriman commented 6 years ago

I have both java I2P and c++ i2pd installed on my Android Nexus 6P phone. On install, Lightning detects java I2P and asks me to enable I2P in Lightning. So far so good. But since java I2P is a major resource hog and battery drainer, I want to use i2pd instead, which does not work.

If I set General settings -> HTTP Proxy to I2P, the browser wants me to start java I2P, even though i2pd is already started and able to handle requests. If I don't, the browser states "I2P is not running" when I try to reach an I2P site.

When setting the HTTP Proxy to Manual and setting it to localhost:4444, as I enter an i2p URL it tries to search for the i2p hostname using google...

I'm using this version of i2pd: https://github.com/PurpleI2P/i2pd/releases/download/2.16.0/i2pd_2.16.0_android-armeabi_v7a.zip

In order to test this, one needs to install i2pd, enable the Storage permission under Settings and also create a couple of settings files, /i2pd/i2pd.conf and /i2pd/tunnels.conf, with minimum settings, like:

/i2pd/i2pd.conf:

[upnp]
enabled = true
name = I2Pd

[reseed]
verify = true

[http]
enabled = true
address = 127.0.0.1
port = 7070

[httpproxy]
enabled = true
address = 127.0.0.1
port = 4444

[socksproxy]
enabled = true
address = 127.0.0.1
port = 4447

[sam]
enabled = true
address = 127.0.0.1
port = 7656

/i2pd/tunnels.conf:

 [IRC]
 type = client
 address = 127.0.0.1
 port = 6668
 destination = irc.postman.i2p
 destinationport = 6667
 keys = irc-keys.dat

If you need any more info, just ask. :)

rancidfrog commented 6 years ago

Works fine. Manual: 127.0.0.1 4444

Do you know what i2p is? You either do not or you did not start i2pd:

@mathiasfriman

When setting the HTTP Proxy to Manual and setting it to localhost:4444

Use for Manual: specifically - 127.0.0.1 and, 4444