# Set up your own private stratum pool

**URL:** <https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043>\
**Category:** Mining\
**Created:** [November 24, 2016, 2:59pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043 "2016-11-24T14:59:01Z")\
**Posts on this page:** 20\
**Page:** 8

<div class="post-metadata">

**Author:** ![voxelot](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/voxelot/32/571_2.png) [@voxelot](https://forum.zcashcommunity.com/u/voxelot)\
**Post date:** [December 2, 2016, 5:02pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/141 "2016-12-02T17:02:49Z")

</div>

> [@BlackIce2017](#):
>
> What do you thing if we add all our minig power to same pool in some kind of rotation to get more chances to find a block???

I think this is a bad idea. [www.zogpool.org](http://www.zogpool.org) just found a block with 6k sol/s and [www.luckpool.org](http://www.luckpool.org) is working its way up to maybe a block every two days. I’m happy with a smaller pool. (the zog payouts seem better than flypool at this point)

Also having more pools is good for the mining ecosystem and helps prevent centralization.

---

<div class="post-metadata">

**Author:** ![s3479](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@s3479](https://forum.zcashcommunity.com/u/s3479)\
**Post date:** [December 2, 2016, 10:47pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/142 "2016-12-02T22:47:08Z")

</div>

What type of pools are these? P2Pool? What is a p2pool?

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 2, 2016, 10:48pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/143 "2016-12-02T22:48:40Z")

</div>

Its a stratum pool … as far as i know, there are no P2Pools for zcash … yet

---

<div class="post-metadata">

**Author:** ![mettalmag](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/mettalmag/32/1330_2.png) [@mettalmag](https://forum.zcashcommunity.com/u/mettalmag)\
**Post date:** [December 2, 2016, 11:01pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/144 "2016-12-02T23:01:07Z")

</div>

It was a problem with my virtual machine, I edited some settings and everything went well. Now I’m little bit confused how can I make it to sync blocks ?

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 2, 2016, 11:03pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/145 "2016-12-02T23:03:15Z")

</div>

you run zcashd on its own until it reaches the current block … something like this:

 ![](https://global.discourse-cdn.com/zcash/original/2X/f/f37e007102248a9da026f823d97d4f6431451475.png)

---

<div class="post-metadata">

**Author:** ![mettalmag](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/mettalmag/32/1330_2.png) [@mettalmag](https://forum.zcashcommunity.com/u/mettalmag)\
**Post date:** [December 2, 2016, 11:09pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/146 "2016-12-02T23:09:11Z")

</div>

It confused me more 🙂  
The last command was /usr/bin/screen -dmS “zecnode” ./ZEC/zcash/src/zcashd  
should install it separately ?

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 2, 2016, 11:11pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/147 "2016-12-02T23:11:37Z")

</div>

@mettalmag … hope this helps 🙂

> [@megacrypto](#):
>
> first run, you have to get zcash to sync all blocks, so do that (thanks @dukemc 🙂 ) :
> 
> /usr/bin/screen -dmS “zecnode” ./ZEC/zcash/src/zcashd
> 
> once updated and all synced … stop zcashd and re-run everything
> 
> screen -r zecnodectrl+c
> 
> i made a script to run all parts:
> 
> cdnano zec.pool.sh
> 
> add the following:(there was an error here because of the editor uses ‘#’ as char for bold … sorry )
> 
> #!/bin/bash  
> echo “starting up ZEC Pool”  
> echo “Starting ZEC node”/usr/bin/screen -dmS “zecnode” ./ZEC/zcash/src/zcashd -p2pport=12201  
> echo “Starting Frontend”/usr/bin/screen -dmS “zecpool” ./ZEC/pool\_frontend\_zcash/x86\_64-Linux/pool\_frontend\_zcash ~/.zcash/zcash.cfg  
> echo “Starting Rest API”/usr/bin/screen -dmS “zecapi” ./ZEC/poolrestapi/x86\_64-Linux/poolrestapi ~/.zcash/poolrestapi.cfg  
> echo "Starting Nginx"sudo nginx/sbin/nginx
> 
> and voila … you should have a running zec stratum pool !!!

---

<div class="post-metadata">

**Author:** ![mettalmag](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/mettalmag/32/1330_2.png) [@mettalmag](https://forum.zcashcommunity.com/u/mettalmag)\
**Post date:** [December 2, 2016, 11:14pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/148 "2016-12-02T23:14:09Z")

</div>

That was the part that confused me, let me re read it again and see if I missed something.

---

<div class="post-metadata">

**Author:** ![mettalmag](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/mettalmag/32/1330_2.png) [@mettalmag](https://forum.zcashcommunity.com/u/mettalmag)\
**Post date:** [December 2, 2016, 11:17pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/149 "2016-12-02T23:17:53Z")

</div>

Ok here’s what happened, after running script I got the error  
nginx: [error] ngx\_http\_cxxrest\_pass\_handler: got destination: api\_backend  
and one more, should I see the block syncing progress ?

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 2, 2016, 11:18pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/150 "2016-12-02T23:18:02Z")

</div>

running the pool mainly should have 4 processes running:

1. zcashd
2. poolrestapi
3. the pool frontend
4. nginx

the bash script runs all 4 from one script, which is usually what you will need to do… but since this is the first run, and you have to sync the zcashd … so you only run the zcashd part … wait on it till it syncs … stop it … and then run the scrypt

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 2, 2016, 11:18pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/151 "2016-12-02T23:18:43Z")

</div>

> [@mettalmag](#):
>
> nginx: [error] ngx\_http\_cxxrest\_pass\_handler: got destination: api\_backend

this is not an error … its a debug msg from nginx

---

<div class="post-metadata">

**Author:** ![streamview](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@streamview](https://forum.zcashcommunity.com/u/streamview)\
**Post date:** [December 4, 2016, 11:51am UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/152 "2016-12-04T11:51:14Z")

</div>

hi  
server is up , wallet updated , web is up , but still can not connect my miner to server…  
do i need to install stratum server?

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 4, 2016, 1:02pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/153 "2016-12-04T13:02:36Z")

</div>

What miner are you using?

Silentarmy, nheqminer, and claymore should work!!

Optiminer does not work ☹

And what’s your pool’s url?

---

<div class="post-metadata">

**Author:** ![streamview](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@streamview](https://forum.zcashcommunity.com/u/streamview)\
**Post date:** [December 4, 2016, 1:06pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/154 "2016-12-04T13:06:25Z")

</div>

> [@megacrypto](#):
>
> What miner are you using?

@megacrypto I am using nheqminer  
 ![](https://global.discourse-cdn.com/zcash/original/2X/d/d361d49d0326fef08e403c9b6b8f19b58ec1a663.png)  
i use this format : nheqminer -l aa.bbb.cc.ddd:3357 -u xxxxxxxxxxxxxxxxxxxxxxxx -p x  
I dont have domain name , i use ip address.

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 4, 2016, 1:10pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/155 "2016-12-04T13:10:54Z")

</div>

I run nheqminer as follows:

Nheqminer -cd 0 -l [megacrypto.servebeer.com:3357](http://megacrypto.servebeer.com:3357) -u myTaddr

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 4, 2016, 1:13pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/156 "2016-12-04T13:13:16Z")

</div>

Ok… sorry didn’t see the second part!!

Yes you can connect with IP normally

Are you sure the frontend is running… when you “screen -r zecpool” what do you get?

---

<div class="post-metadata">

**Author:** ![streamview](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@streamview](https://forum.zcashcommunity.com/u/streamview)\
**Post date:** [December 4, 2016, 1:26pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/157 "2016-12-04T13:26:33Z")

</div>

> [@megacrypto](#):
>
> when you “screen -r zecpool” what do you get?

@megacrypto

root@localhost:/# screen -r zecpool  
There is no screen to be resumed matching zecpool.  
root@localhost:/#

strange I was sure it worked before.

---

<div class="post-metadata">

**Author:** ![megacrypto](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@megacrypto](https://forum.zcashcommunity.com/u/megacrypto)\
**Post date:** [December 4, 2016, 1:40pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/158 "2016-12-04T13:40:54Z")

</div>

Just close any other screen’s running…reboot… and run the sh script and see if all picks up

---

<div class="post-metadata">

**Author:** ![streamview](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@streamview](https://forum.zcashcommunity.com/u/streamview)\
**Post date:** [December 4, 2016, 2:27pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/159 "2016-12-04T14:27:18Z")

</div>

> [@megacrypto](#):
>
> Just close any other screen’s running…reboot… and run the sh script and see if all picks up

@megacrypto I did , and still the same.

 ![](https://global.discourse-cdn.com/zcash/original/2X/e/e5488d35d08aaee9a53f4eeb2bd6b0e949b31d54.png)

PS: I am using VPS from 1&1

---

<div class="post-metadata">

**Author:** ![streamview](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@streamview](https://forum.zcashcommunity.com/u/streamview)\
**Post date:** [December 4, 2016, 3:48pm UTC](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043/160 "2016-12-04T15:48:19Z")

</div>

@megacrypto

i used to run .zcashd and I get the screen

 ![](https://global.discourse-cdn.com/zcash/original/2X/3/379298ab767a8e3268f2eca63ee71253745c482e.png)

now i just noticed that the scree that i got is = to what " screen -r zecpool " output.

so this is my screen , and still not working my miner.

this what i get

> [10:46:00][0x00002490] stratum | Reconnecting in 3 seconds…  
> [10:46:03][0x00002490] stratum | read\_until: A request to send or receive data w  
> as disallowed because the socket is not connected and (when sending on a datagra  
> m socket using a sendto call) no address was supplied  
> [10:46:03][0x00002490] stratum | Reconnecting in 3 seconds…  
> [10:46:06][0x00002490] stratum | Connecting to stratum server aa.bbb.cc.ddd:3357

[Previous page](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043.md?page=7)

[Next page](https://forum.zcashcommunity.com/t/set-up-your-own-private-stratum-pool/9043.md?page=9)
