KlausT / ccminer

Software for mining various cryptocoins
GNU General Public License v3.0
403 stars 312 forks source link

Connecting through a Proxy #140

Open mlgarchery opened 6 years ago

mlgarchery commented 6 years ago

Hello ! I'm trying to connect using the --proxy parameter (I do something like that --proxy=http://host:port) , but I can't figure out why it doesn't work. Has anybody used it and made it work so far ? I'm on windows and get a "Stratum connection failed: Could not resolve host: eu.siamining.com" Thanks and Happy New Year ! :)

KlausT commented 6 years ago

I don't know anyone who is using the proxy option. When you want to use the sia stratum proxy, then you don't need that option, I think. Just use the address of the proxy instead of the pool's address.

alexandredomain commented 6 years ago

I've tried to use ccminer through a proxy too, a few weeks ago. I had the same problem : "Stratum connection failed: Could not resolve host ...." It could be very nice if I could mine thanks to this proxy option. Thanks KlausT.

KlausT commented 6 years ago

first you start the mining_proxy Then you start ccminer: ccminer -a sia -o stratum+tcp://127.0.0.1:3333 -O c30ba100fb0c7ac5c786723cdc873b2d686de0065f835b8df318031d10a9c2ce8d33367d0f0c:x (replace the address with your own)

But I don't know why you would want to use a proxy when you can mine directly on the pool.

mlgarchery commented 6 years ago

It is not that I want to use a proxy for mining, but rather that I'm given internet access through a proxy ;) . Someone is watching me haha. But don't bother, I'll look at the code and build something that fits to my use. Thank you for the answers

redlegoman commented 6 years ago

This is an issue for me too. I only have Internet access via an http proxy. The --proxy option does not seem to work - I have access to the proxy logs and I don't even see it trying to access the proxy. minerd does work via the proxy, ccminer doesn't.

KlausT commented 6 years ago

Stratum is not HTTP. This means the proxy has to support SOCKS, otherwise it will not work.