Skip to content

Instantly share code, notes, and snippets.

@aint
Last active February 11, 2023 09:55
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save aint/9bd4903700ee4123bfcf to your computer and use it in GitHub Desktop.
Save aint/9bd4903700ee4123bfcf to your computer and use it in GitHub Desktop.
Set Up I2P on Mac OS X
  • Install I2P
    • Download I2P
    • java -jar i2pinstall_*.jar
  • Install Java Service Wrapper
    • Download Community Version
    • tar xzf wrapper-*.tar.gz
    • cp wrapper*/bin/wrapper /Applications/i2p/i2psvc
    • cp wrapper*/lib/wrapper.jar /Applications/i2p/lib
    • cp wrapper*/lib/libwrapper.so /Applications/i2p/lib
  • Try to start I2P using /Applications/i2p/i2prouter start or Start I2P Router app
    • tail -f /tmp/wrapper.log and look for any problems
  • Configure FireFox browser
    • Install FoxyProxy
    • Set HTTP Proxy: 127.0.0.1, Port: 4444
    • Whitelist https?://127.0.0.1/*
    • Whitelist *.i2p/*
  • Install I2PMonitor
    • Download I2PMonitor
    • Install I2PControl Router Plugin
    • Wait until plugin is downloaded and installed. Be patient, it can take time, if your router is not yet good integrated into network.
    • Launch I2PMonitor app
@colorfulfool
Copy link

colorfulfool commented Dec 20, 2017

As a complete alternative, you can just do brew install i2p.

@monokrome
Copy link

The brew one doesn't work properly most the time

@harryqt
Copy link

harryqt commented Dec 19, 2022

As a complete alternative, you can just do brew install i2p.

I did this on MacBook Air (M2-ARM chip) and when I do i2prouter start its shows:

Waiting for I2P Service..................
WARNING: I2P Service may have failed to start.
**Failed to load the wrapper**

The most likely reason is that a supported version of the java
wrapper is not available in the I2P installation package for your
platform. It may be possible to manually download and install
a compatible wrapper for your system.
See https://geti2p.net/en/misc/manual-wrapper for hints.

In the meantime, you may start I2P by running the script
/opt/homebrew/Cellar/i2p/2.0.0/libexec/runplain.sh

Running /opt/homebrew/Cellar/i2p/2.0.0/libexec/runplain.sh gives me

I2P started [5268]
/opt/homebrew/Cellar/i2p/2.0.0/libexec/runplain.sh: line 54: %SYSTEM_java_io_tmpdir/router.pid: No such file or directory

However I can access http://127.0.0.1:7657/home

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment