zzz.i2p

Development discussions
Develop Application for communication with fix endpoints « Meetings « I2P Development
 
Sun, 23 Sep 2018, 12:35pm #1
michel
Contributor

Hello together.

I2P is a great new world for me :)

I try this example https://geti2p.net/en/get-involved/develop/appl....

This sound really great, I have only one problem.
The address for the Server is changen with every start of the server. Can I develop an app, which uses a fix address in i2p?

Would be very nice, to have static addresses like something like MMzqCl3msn~u~wqfGFtbSwRw4arKAnq9gftK-jf2y2k=

Is there already a solution for that problem?

Kind regards
Michelioin

Sun, 23 Sep 2018, 11:21pm #2
zzz
Administrator
Zzz

Of course. See the Javadocs for the other methods in I2PSocketManagerFactory.

Mon, 24 Sep 2018, 10:08am #3
michel
Contributor

Hello ZZZ

Sounds great :)
Do you have an example?

I want to create a process like this:

application -> source-i2pRouter -> transmission via internet -> target-i2pRouter -> application

Is something like this possible?

I tried to understand http://docs.i2p-projekt.de/javadoc/net/i2p/clie...

I think I need a fix address for every i2p node.

Kind regards
Michelion

Last edited: Sun, 07 Oct 2018, 06:29pm by michel

Mon, 24 Sep 2018, 04:40pm #4
zzz
Administrator
Zzz

Of course it is possible.

You create the private key file the first time, then open it back up as an InputStream and pass it to the I2PSocketManagerFactory method.

I don't think there's a simple example out there. You can use the PrivateKeyFile class to create it, or look at TunnelController.createPrivateKey() for another way to do it.

You'll get faster answers, maybe, if you ask in IRC #i2p-dev

Sun, 07 Oct 2018, 07:03pm #5
michel
Contributor

Hello zzz

How can I create a private key file?
Is it possible with i2p?
Or cat i use every tool? like putty?

Kind regards

Sun, 07 Oct 2018, 08:03pm #6
zzz
Administrator
Zzz

The answers are in #4 above. Of course it is possible. PrivateKeyFile or TunnelController class. No you can't use another tool.

You'll get faster answers, maybe, if you ask in IRC #i2p-dev. Maybe you're relatively new at Java programming, or English isn't your first language? We're happy to help any way we can, but it's going to take a long long time doing it this way in this forum.