You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
always get error (SocksClientError: connect ECONNREFUSED 127.0.0.1:9050) #60
after installing and running the module, I get an error from a function of one of the dependencies. (socksclient.js: 371: 32). Maybe it dependence(module"socksclient") did`t work correct now?
(node:95146) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 127.0.0.1:9050
- Are you running `tor`?
See easy guide here (OSX, Linux, Windows):
https://github.com/talmobi/tor-request#requirements
Quickfixes:
OSX: `brew install tor && tor` # installs and runs tor
Debian/Ubuntu: `apt-get install tor` # should auto run as daemon after install
Windows: download the Windows Expert Bundle from `https://www.torproject.org/download/tor/`
Unzip and run tor.exe inside the Tor/ directory.
@DhananjayPurohit tor is usually running on port 9050 by default -- but your seems to be running on port 9060 -- try setting the port specifically to 9060 using
var tr = require('tor-request');
var ipaddress = "127.0.0.1"
var port = 9060
tr.setTorAddress(ipaddress, port); // "127.0.0.1" and 9050 by default
@DhananjayPurohit maybe there is wrong with library configuring the port -- try running your tor on port 9050 instead by changing line 18 in your torrc and trying again.
you can check which ports are active/in use using:
Activity
talmobi commentedon Oct 18, 2020
Can you see the full error log where it says:
See the: https://github.com/talmobi/tor-request#requirements
talmobi commentedon Oct 19, 2020
see related issues: #3 #40 #54
Basically you have most likely forgot to run your
torclient before usingtor-requestDhananjayPurohit commentedon May 23, 2023
I am getting the same error even when my tor is running:-
OS:- Windows 11
Here's the link to my torrc file:-
https://gist.github.com/DhananjayPurohit/40d377e67e5ac7bf5f0f3b86717fdd77
DhananjayPurohit commentedon May 26, 2023
@talmobi @Pavelhack
talmobi commentedon May 26, 2023
@DhananjayPurohit tor is usually running on port 9050 by default -- but your seems to be running on port 9060 -- try setting the port specifically to 9060 using
DhananjayPurohit commentedon May 31, 2023
I ensured the port to be 9060 still getting the error, Is there any tool or process you can recommend for checking what's wrong with my SOCKS port?
talmobi commentedon Jun 5, 2023
@DhananjayPurohit maybe there is wrong with library configuring the port -- try running your tor on port 9050 instead by changing line 18 in your torrc and trying again.
you can check which ports are active/in use using:
lsof -i -P -n | grep LISTEN