SChernykh / p2pool

Decentralized pool for Monero mining
GNU General Public License v3.0
1.03k stars 123 forks source link

Instead of YOUR_P2POOL_NODE_IP, can I use my domain? #305

Closed PYU224 closed 1 month ago

PYU224 commented 2 months ago

Hello. I have a question.

To connect another mining rig to your P2Pool node, run ./xmrig -o YOUR_P2POOL_NODE_IP:3333 on that mining rig

Can my domain be used as P2POOL_NODE_IP?

PYU224 commented 2 months ago

As a side note, can the domain of p2pool node be used with DDoS-protection service like cloudflare proxy?

SChernykh commented 2 months ago

Yes, you can use domain names instead of IP addresses. ~P2Pool~ XMRig will use your default DNS server to resolve the domain name.

PYU224 commented 2 months ago

Thanks. I want to build and manage monero pool like these services. https://xmr.nanopool.org/ https://supportxmr.com/

PYU224 commented 2 months ago

This is addtional question. If the domain is onion domain, can it be used as P2POOL_NODE_IP too?

SChernykh commented 2 months ago

XMRig can connect to onion domains: https://xmrig.com/docs/miner/tor - you have to use it with a SOCKS5 proxy.

PYU224 commented 2 months ago

Thanks. I don't know this tool well now, but I want to use well in future.

PYU224 commented 2 months ago

in DNS A record, "mydomain":3333. And in xmrig setting, "./xmrig -o mydomain:3333".

Is this setting available?

SChernykh commented 1 month ago

Yes, XMRig can resolve domains, assuming that your DNS server or SOCKS5 proxy can resolve them. Closing it as it's not a P2Pool issue.