2

I am working online application and while working , some of my ip are banned . After that i came to know about Tor and i want to know how to add the tor services in java applications.

Please do needful on this.

closed as unclear what you're asking by Jens Kubieziel Sep 16 '16 at 14:33

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

2

You could try and use jtorctl which is a

A Java library for controlling a Tor instance via its control port. It is used in the Android app Orbot as well as others.

Orchid

Orchid is a Tor client implementation and library written in pure Java.

It was written from the Tor specification documents, which are available here.

Orchid runs on Java 5+ and the Android devices.

There are also other solutions written but it is written Python such as:

Stem

Stem is a Python controller library that you can use to interact with Tor. With it you can write scripts and applications with capabilities similar arm.

txtorcon

txtorcon is a Twisted-based Python asynchronous controller library for Tor, following control-spec. This would be of interest to anyone wishing to write event-based software in Python that talks to (and/or launches) a Tor program.

They seems to be more comprehensive than jtorctl. If the Java libraries doesn't work, maybe you can integrate these Python libraries into your Java project using Jython. Goodluck!

Source: https://tor.stackexchange.com/a/523/13768

  • What would be the best way for a java client to connect to to netowrk without needing to install the tor browser first ? – Sudhir N Sep 7 '16 at 12:02
  • @sudhir I believe I have already listed the best options that doesn't require the Tor Browser Bundle above. – m894v5n74v539nm8 Sep 7 '16 at 12:19
  • 1
    I've added Orchid to the list, it's a pure java implementation of a Tor client. – cacahuatl Sep 8 '16 at 2:02
  • Thanks for that reference! I have added that API to the linked source's community wiki while crediting to you there, hope you don't mind. – m894v5n74v539nm8 Sep 8 '16 at 4:34
0

Tor - from the application point of view - is just a proxy and DNS server, so use SOCKS, transparent proxy and DNS as usually on Java

Not the answer you're looking for? Browse other questions tagged or ask your own question.