ipfs / ipget

Retrieve files over IPFS and save them locally.
MIT License
388 stars 54 forks source link

Is there a way to configure ip:port for Kubo RPC #151

Open qub opened 3 weeks ago

qub commented 3 weeks ago

New to IPFS so please forgive me if I fundamentally misunderstood something.

Is there a way to configure the node address for this? I'm using Brave browser, which has the ability to run a node within itself but doesn't bind to port 5001:

$ ./ipget -n local --progress <cid here> Post "http://127.0.0.1:5001/api/v0/version?": dial tcp 127.0.0.1:5001: connect: connection refused

It does, however open it up to be used by other utilities on the system:

$ curl -X POST http://127.0.0.1:45005/api/v0/version {"Version":"0.29.0","Commit":"","Repo":"15","System":"amd64/linux","Golang":"go1.22.4"}

Perhaps this is something that could be configured via a switch or an environment variable, or both?

welcome[bot] commented 3 weeks ago

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

Finally, remember to use https://discuss.ipfs.io if you just need general support.

lidel commented 2 weeks ago

Option to adjust Kubo RPC port makes sense, but until this is implemented by someone, you may want to change the RPC port of your node from 45001 to 5001 as suggested in https://blog.ipfs.tech/2024-brave-migration-guide/