I want to test 2 IPFS nodes communicating between each other, each running under different ports
Node 1:
ipfs --api=/ip4/127.0.0.1/tcp/5001 config show
“Path”: “/Users/llukac/.ipfs_1/datastore”,
Node 2:
ipfs --api=/ip4/127.0.0.1/tcp/5002 config show
“Path”: “/Users/llukac/.ipfs_2/datastore”
Through the Node 1 Web UI: 5001 I added a simple test file with hash: QmbjELNZKW1QtkJZsFMCi65mLaw198Z2ret45WbuM4oZPQ
Through the Node 2 Web UI: 5002 I am making sure this file doesn’t exist:
When I execute IPFS cat using the TCP IP of Node 1:
ipfs --api=/ip4/127.0.0.1/tcp/5001 cat QmbjELNZKW1QtkJZsFMCi65mLaw198Z2ret45WbuM4oZPQ
Output:
ipfs111
That’s expected…
My question is, how is possible that Node 2 is also able to retrieve the file??? How did Node 2, resolved Node 1 hash?
ipfs --api=/ip4/127.0.0.1/tcp/5002 cat QmbjELNZKW1QtkJZsFMCi65mLaw198Z2ret45WbuM4oZPQ
Output:
ipfs111
According to UI, 0 peers connected, the gateways are under different ports as well… hm
Thx