I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

BTC node problems

dashed-slug.net Forums General discussion BTC node problems

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7507
    Anonymous
    Inactive

    Hi, 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.
    Thanks

    #7508
    alexg
    Keymaster

    Hmm,

    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-cli to 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/wordpress

    Just replace “command that pulls your ip” with the actual command and replace /path/to/wordpress with 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/wordpress

    Do 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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.