Comments (6)
You can interact with Tor Router 3 ways.
- You can start up Tor Router on the command line, example here.
- You can interact with Tor Router via the JSON RPC Interface, example here.
- 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.
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.
"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.
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
from tor-router.
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.
Tor Router exposes a standard http proxy which can be used with postman.
Assuming you start Tor Router using the -h
flag.
- Open settings
from tor-router.
Related Issues (11)
- Browser Support HOT 2
- npm start failing HOT 2
- Not able to run tor-router with instances HOT 3
- Race Condition when getting Ports for instances in TorPool HOT 1
- socket hang up HOT 1
- pm2 support HOT 1
- @deadcanaries/granax module used to download Tor is AGPL but tor-router is Apache 2.0
- Feature: query list of existing instances from control server HOT 2
- Possible EventEmitter memory leak detected HOT 4
- Minimize IP overlap? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tor-router.