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

You must log in to answer this question.

Browse other questions tagged .