IPFS is not anonymous and will expose your IP address.
When you run a Kubo node, your IP address will be detected with the help of libp2p protocols (identify, autonat etc), and then “published” to the Amino DHT as part of the peer records which map your PeerID to IP addresses.