Bandwidth usage on a self hosted node

i ran ipfs daemon in Termux.

How much bandwidth will it cost when sitting idle?

I have 2GB per day maximum allowance.

Not too much, if however you disable reproviding and the different servers which may route through your node if left on. Maybe the lowpower and announce-off profiles are a good starting point.

Until then I’d keep a close eye on the consumption.

By default Kubo will act as Amino DHT server and a limited relay if it has a public multiaddr. This may produce some ambient traffic as other peers will connect to you and store provider records or relay some data for hole punching.

Since you have only 2GiB limit, you may want to disable these features:

  1. manually disable DHT server by setting Routing.Type=autoclient
  2. Disable relay server by setting Swarm.RelayService.Enabled=false

but if I don’t host anything why and what would any server route through my node?
as far as I understand my idle node will just share DHTs which should not be much.
2. will I contribute anything to ipfs if my nose is always online but I don’t share any files myself or access any files?

  1. If you want to learn how things work, some pointers:
    • how Amino DHT works (generic wikipedia, docs, wip specs). TLDR: every DHT server stores copies of Provide Records. When you “announce CID” on DHT, it gets stored (DHT PUT) on other peers redundancy When you are DHT server, other nodes store Provider Rcords on your machine, which produces ambient traffic.
    • how Limited Relays V2 are used for Direct Connection Upgrade through Relay (DCUtR). TLDR: your node forwards small amolunt of data to help other nodes to establish direct p2p connection.
  2. Probably no (if you dont provide any data, disable dht and relays, autonat etc, you are left with nothing consequential)