Giter Site home page Giter Site logo

Comments (6)

znetstar avatar znetstar commented on May 29, 2024

You can interact with Tor Router 3 ways.

  1. You can start up Tor Router on the command line, example here.
  2. You can interact with Tor Router via the JSON RPC Interface, example here.
  3. You can include Tor Router in your application as a node module the api documentation would help with that.

I don't use Postman, but if it can use a HTTP proxy that it should work with Tor Router. Run Tor Router with npx tor-router -h -j X where X is the number of instances you want. Then tell Postman to connect to http://localhost:9080.

from tor-router.

skimonkey avatar skimonkey commented on May 29, 2024

Thanks, Im running the tor-router in a docker container and attempting to route requests via it from a node app in another docker container. I am using https-proxy-agent and and node https but always get

Error: connect EADDRNOTAVAIL 0.0.0.0:9053

I have my proxy set as

http://0.0.0.0:9053/

Is this correct???

I can now route requests via postman using the following url but not from within my node app

http://0.0.0.0:[email protected]/

from tor-router.

znetstar avatar znetstar commented on May 29, 2024

"0.0.0.0" means all network interfaces in your container. It is not an actual IP Address, which is why it is telling you "0.0.0.0" ADDRNOTAVAIL (Address not available).

First, you need to make sure that the container exposes the port to the host: docker run -p 9053:9053 znetstar/tor-router -j 1 -h 9053

Then you need to connect to localhost on the loopback network interface (in other words tell the application to connect to a proxy on the computer you're using). The address for localhost is "127.0.0.1" so your proxy address is "http://127.0.0.1:9053".

from tor-router.

skimonkey avatar skimonkey commented on May 29, 2024

I had previously tried a proxy setting of 127.0.0.1:9053 and localhost:9053 but neither worked for me. I also tried setting a different ip address and port but still did not work.
I havent tried from code yet but I will do so in the morning. I feel I must be mis-understanding something..!

Here are a few images of my settings/attempts from postman
docker-tor-router
postman-proxy
postman-test

from tor-router.

skimonkey avatar skimonkey commented on May 29, 2024

Eventually got this to work from code. I never got it work from postman so maybe its just not possible.

From code I used the following lib to make the request via the tor-router proxy container.
https://www.npmjs.com/package/tor-request

from tor-router.

znetstar avatar znetstar commented on May 29, 2024

Tor Router exposes a standard http proxy which can be used with postman.
Assuming you start Tor Router using the -h flag.

  1. Open settings

screen shot 2018-10-17 at 3 21 37 pm

2. Set the proxy

screen shot 2018-10-17 at 3 22 30 pm

3. Make a request

screen shot 2018-10-17 at 3 22 46 pm

from tor-router.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.