I want to check, if an onion address (in my case an ID from torchat) is online. How can I achieve this, since simple pings are not working.
I try to get a status response with the following python code:
import requests
url = 'http://rrcc5uuudhh4oz3c.onion'
resp = requests.get(url,
proxies=dict(http='socks5h://127.0.0.1:9050',
https='socks5h://127.0.0.1:9050'))
print(resp)
The output is: <Response [200]>
, which is exactly what I want.
However, when I try to connect to a Torchat-ID, to see, whether it is reachable, I get: Failed to establish a new connection: 0x05: Connection refused
.
Is there another way to get a status-code response from a Torchat-ID to see, if it is still alive?
About Torchat-ID: https://www.deepdotweb.com/jolly-rogers-security-guide-for-beginners/tor-chat/
Below you can see the Torchat. Users can be active resp. inactive. If they are active, one should be able to get a status response. Torchat-IDs are plain .onion addresses.
Quote (link):
the first time you open TorChat your computer might generate
d0dj309jfj94jfgf.onion and from here on out, d0dj309jfj94jfgf will be
your TorChat ID that you give out to people that you want to be able
to message you