c00w / bitHopper

A python based poolhopper for bitcoin
MIT License
93 stars 53 forks source link

Enhancement: BH behind proxy / tunnel #569

Open Endeavour79 opened 12 years ago

Endeavour79 commented 12 years ago

An option to force BH to use a proxy server (for a HTTP Tunnel) would be very nice. My ISP blocks some ports like 8332 and so I can't access many pools.

There are good free options like HTTP-Tunnel but I would need to force BH to connect through a local proxy server.

Ideas???

c00w commented 12 years ago

You can use btcproxy.net. It basically has bitHopper on its side and it is connected to over port 80.

ottuzzi commented 12 years ago

Hi,

I'm not a python expert but from urllib docs[1] it looks like that urllib should honour the http_proxy environment variable: for my eyes it looks like bitHopper is using urllib but it also seems (from my own test) that this trick is not working on bitHopper. Do you have any ideas?

Thanks Bye Piero

[1]http://docs.python.org/library/urllib.html

c00w commented 12 years ago

Um, it's not currently honoring that variable, I'll add it to the feature list. I'm getting paid for doing this in about weeks so I'll start working on this a lot more.

Endeavour79 commented 12 years ago

For the moment I use Proxifier to force python.exe to use the local proxy tunnel. Works pretty good. You can set port based rules to save tunnel bandwidth for not blocked ports too. http://www.proxifier.com/

ottuzzi commented 12 years ago

Hi,

any news on this front?

Thanks Bye Piero

c00w commented 12 years ago

I've figured out how to do it with httplib2. Its a lot easier to do it in 0.3.2 than 0.3.1 so I'll try and add it soon to 0.3.2.