Directly connecting to one node that has all the files I need

I have to connect my node to another node that is hosting a ton of files I need. A few questions:

  1. I have to keep connecting with ipfs swarm connect because they disconnect. I read online to use linux timers to get around this. Is there a better way?

  2. I seem to still hang sometimes, and timeout, even when connected to the peer. Is there anyway to prioritize searching the DHT for this node first? Or can I just connect to this node and block out all others (except major gateways)? Or is there just a better solution I haven’t thought of?

thanks!

Turns out 2. isnt a problem. When I am actually connected, I find the files very easily. When I am not, I don’t . So just looking to learn if anyone knows how to not disconnect from a peer, other than uses linux timers

1 Like