0

torsocks commands doesn't work on Mac. For example if I run:

torsocks http https://check.torproject.org/api/ip

It returns:

1546862950 PERROR torsocks[6434]: socks5 libc connect: Connection refused (in socks5_connect() at socks5.c:202) 1546862950 PERROR torsocks[6434]: socks5 libc connect: Connection refused (in socks5_connect() at socks5.c:202)

http: error: ConnectionError: HTTPSConnectionPool(host='check.torproject.org', port=443): Max retries exceeded with url: /api/ip (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 4] Non-recoverable failure in name resolution',)) while doing GET request to URL: https://check.torproject.org/api/ip

The url is valid because when I do curl https://check.torproject.org/api/ip, it returns a valid response.

  • @Allan Yes I can, If I do curl https://check.torproject.org/api/ip, it returns a response. – X09 Jan 7 at 12:27
  • Cool. I wish I could assist further, but linking up to the TOR network on machines/networks I use for work is not something I wish to do. Hopefully someone can assist further. – Allan Jan 7 at 13:17

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.