dashed-slug.net › Forums › General discussion › BTC node problems
Tagged: bitcoin, built-in adapter, dynamic IP, ip, rpc
- This topic has 1 reply, 2 voices, and was last updated 5 years, 10 months ago by
alexg.
-
AuthorPosts
-
December 16, 2019 at 4:01 pm #7507
Anonymous
InactiveHi, I have a node set up, but my ISP wanted 5 euros a month plus 100 euro set up fee for a static IP address. That’s more than a VPS with a static IP included!
So I have set it up with a dynamic dns service, and it’s all working fine. Is there a way to connect the wallets plug-in to this, all I can see is a field to put in the IP address.
ThanksDecember 17, 2019 at 9:03 am #7508alexg
KeymasterHmm,
5 euros per month for a static IP sounds very reasonable, but I’ve never heard of a 100 euro set up fee; that sounds like a lot.
Are you sure that you cannot find an ISP in your area that offers static IP with 5 or 10 euros per month but without an upfront fee?
In any case, it is possible to make this work even with a dynamic IP, but it’s somewhat harder, and it will involve connecting to your WordPress machine via ssh.
If you can get the IP of the server via a Linux command, you can use
wp-clito insert it into your WordPress DB. Let’s say that you have a command that pulls the IP from somewhere, then you can do:wp option update wallets-bitcoin-core-node-settings-rpc-ip $(command that pulls your ip) --path=/path/to/wordpressJust replace “command that pulls your ip” with the actual command and replace
/path/to/wordpresswith your actual path.The difficulty here is to have a command that pulls the dynamic IP. Since your web server already has a static IP, you’d have to push your dynamic IP FROM your wallet server TO your WordPress server. For example:
Wallet server:
curl https://api.ipify.org >>myip.txt
scp myip.txt wordpress:~WordPress server:
wp option update wallets-bitcoin-core-node-settings-rpc-ip $(cat ~/myip.txt) --path=/path/to/wordpressDo this once manually to see that it works. Then, on both ends these should be on the crontabs of the two machines. This way the setting will get updated shortly after your dynamic IP changes. There might be up to a minute of downtime when the IP changes.
Let me know if you are having trouble implementing this.
-
AuthorPosts
- You must be logged in to reply to this topic.
