chris-belcher / electrum-personal-server

Maximally lightweight electrum server for a single user
MIT License
601 stars 110 forks source link

Can I make a public server with EPS? #243

Closed AngeloMetal closed 3 years ago

AngeloMetal commented 3 years ago

I know that it sounds dumb, since it's a personal server, but is it possible to make it available for others, just like it's done in electrumx? I find EPS pretty comfortable implementation and I was wondering if it'd be possible.

I tried connecting to my electrum personal server with LAN, but it didn't seem to work. Is it exclusively for the machine that is being installed, locally? I'm asking because in line 50, it says that it can accept connections from any IP.

Thanks.

chris-belcher commented 3 years ago

Yes exposing EPS to connections over LAN is possible. Did you definitely set host = 0.0.0. in that section of the config file you linked ?

AngeloMetal commented 3 years ago

Yes, I set it to 0.0.0.0

chris-belcher commented 3 years ago

Did you correctly input the server IP address into the client?

You could also try running netstat -l on the command line (on linux) to check if EPS has opened a port binded to 0.0.0.0

AngeloMetal commented 3 years ago

I will, but what matters to me right now if it's possible to expose it over WAN.

chris-belcher commented 3 years ago

Have you read this? https://github.com/chris-belcher/electrum-personal-server#exposure-to-the-internet

Exposure to WAN could allow anyone else out the on the internet to figure out which bitcoin addresses are yours.

AngeloMetal commented 3 years ago

Oh wait, I had totally forgot about that. I can't run EPS without having inserted some addresses/master keys first, can I? I think that on electrumx it's possible to return you the balance of any address since it keeps the txindex.

chris-belcher commented 3 years ago

Yes that's right. ElectrumX creates a huge database containing every bitcoin address that was ever used. That's why it can synchronize any Electrum wallet without needing to configure beforehand. EPS needs to be configured beforehand but requires much much less disk space, uses less other resources like CPU and RAM, and it much quicker to set up.

AngeloMetal commented 3 years ago

I guess that I can't configure that same setting, electrumx has, to EPS. I just face a lot of issues on my way to install electrumx and your server implementation was much more simpler than it.