Categories
Bitcoin

Can I use a bitcoind data from LAN from local bitcoin-qt?

I do not want to have bitcoin-qt started every time I boot my computer and other computers on my local LAN.

The following content was written by OtherMacMan on August 08, 2020, 05:37:40 AM in the thread Can I use a bitcoind data from LAN from local bitcoin-qt?. All content is owned by the author of the bitcointalk.org post. (original)


Hello
I am just a new user to bitcoin.

Here is my problem. I do not want to have bitcoin-qt started every time I boot my computer and other computers on my local LAN. As It is using resources and also a lot of disk space on every computer.

Here is my thought but I do not know if it is possible.

Could I setup a bitcoind on my server using docker and access it from my bitcoin-qt?
It will have the latest blockchain downloaded in one computer centrally and it will not take my desktop disk space and recources and it will also run all day.

Also as there are more than one computer here I could setup different bitcoin-qt for each user and save their wallet info in their computer but the huge blockchain folder is going to be in the server.

Also an other idea I had was to use a web based bitcoin client installed on the server.  With that I could login from my mobile phone remotely via vpn and access my wallet securely without having to use any other web wallets

Can this be done? Is there a guide I could use to do it?

The following content was written by bob123 on August 08, 2020, 11:43:59 AM in the thread Can I use a bitcoind data from LAN from local bitcoin-qt?. All content is owned by the author of the bitcointalk.org post. (original)


Here is my problem. I do not want to have bitcoin-qt started every time I boot my computer and other computers on my local LAN. As It is using resources and also a lot of disk space on every computer.

You could just remove it from your autostart.



Here is my thought but I do not know if it is possible.

Could I setup a bitcoind on my server using docker and access it from my bitcoin-qt?
It will have the latest blockchain downloaded in one computer centrally and it will not take my desktop disk space and recources and it will also run all day.

Also as there are more than one computer here I could setup different bitcoin-qt for each user and save their wallet info in their computer but the huge blockchain folder is going to be in the server.

AFAIK this is not possible the way you are imagining.

But you could run your full node on the server and use SPV wallets on the clients to connect to it.
Either electrum together with an electrum server on your server, or simply using Wasabi wallet on the client PC’s and connecting them directly to your full node by editing the Config.json.
The latter is probably the best option.



Also an other idea I had was to use a web based bitcoin client installed on the server.  With that I could login from my mobile phone remotely via vpn and access my wallet securely without having to use any other web wallets

Definitely possible, but security risks always exist when something is accessible from the internet.
Only being accessible via a VPN does help, but shouldn’t be considered absolutely secure. I would only use it for relatively small amounts.


The following content was written by ETFbitcoin on August 09, 2020, 12:06:10 PM in the thread Can I use a bitcoind data from LAN from local bitcoin-qt?. All content is owned by the author of the bitcointalk.org post. (original)


Here is my problem. I do not want to have bitcoin-qt started every time I boot my computer and other computers on my local LAN. As It is using resources and also a lot of disk space on every computer.

It’s quite simple,
1. Open Bitcoin Core
2. Select Settings
3. Select Options
4. Untick “Start Bitcoin Core on system login”

Also an other idea I had was to use a web based bitcoin client installed on the server.  With that I could login from my mobile phone remotely via vpn and access my wallet securely without having to use any other web wallets

It’s possible, but securing server isn’t easy task. If your goal doesn’t include spending Bitcoin, creating watch-only wallet with mobile wallet is better option.

The following content was written by OtherMacMan on August 09, 2020, 04:34:53 PM in the thread Can I use a bitcoind data from LAN from local bitcoin-qt?. All content is owned by the author of the bitcointalk.org post. (original)


I think that I probably not my myself clear on what I want to do

The problem is not to stop the process from loading on startup. The problem is that we have 3 bitcoin core apps loading all the time and creating a 300 GB db each.

so we are wasting almost 1 TB of disk space. I thought I could have the db on the server and have it updating. But the bitcoin core does not have the option to use a centralised db in my LAN

That was my question. I of course know that I could turn off to start it automatically

Also if I do that I will have to wait every time I reopen the app

on the other hand if the data is all the time updated on the server, I, and every other user in my lan can open its app and use the same db without waiting.

The following content was written by odolvlobo on August 09, 2020, 06:52:49 PM in the thread Can I use a bitcoind data from LAN from local bitcoin-qt?. All content is owned by the author of the bitcointalk.org post. (original)


There is no reason why you can’t have one node running and other apps querying it via RPC. However, if you need multiple wallets, then bob123’s SPV recommendations are good.

The following content was written by JuleAdka on August 09, 2020, 11:42:09 PM in the thread Can I use a bitcoind data from LAN from local bitcoin-qt?. All content is owned by the author of the bitcointalk.org post. (original)


You can try mount the server file system remotely on the others computes, but it probably will lead to a error because more than one instance of bitcoin is running (the core knows it because the .lock file, that is located on the data directory).  
But if your node are already running, there is no reason to have more then one node running, just download a SPV, as you can see above(electrum are a good one), and connect it to your full node. You not will loose privacy in this case

The following content was written by HCP on August 10, 2020, 12:29:14 AM in the thread Can I use a bitcoind data from LAN from local bitcoin-qt?. All content is owned by the author of the bitcointalk.org post. (original)


Could I setup a bitcoind on my server using docker and access it from my bitcoin-qt?
You could setup the bitcoind on your server, but you probably won’t be able to access it using bitcoin-qt, as bitcoin-qt has bitcoind “built-in” and will attempt to start it’s own local process…

However, you can use the RPC functionality of “bitcoin-cli” to connect from your local machine to your remote bitcoind instance, but obviously this is command-line only.


If you want a full wallet GUI, then as mentioned above and also indicated in this very old (and “closed”) Bitcoin Core “issue”, the only option you have is to run an SPV wallet and connect that to your centralised node.

The following content was written by ETFbitcoin on August 10, 2020, 12:20:55 PM in the thread Can I use a bitcoind data from LAN from local bitcoin-qt?. All content is owned by the author of the bitcointalk.org post. (original)


You can try mount the server file system remotely on the others computes, but it probably will lead to a error because more than one instance of bitcoin is running (the core knows it because the .lock file, that is located on the data directory).  

True. Additionally, it will cause data corruption if you force multiple Bitcoin Core using same file/directory, there are a member who tried it and was forced to redownload some parts of the blockchain.

By Ali Sherief

Editor-in-chief and serial coder & blogger.