The file uploaded with windows desktop can not be checked or got via https://ipfs.io/ipfs/xxxxxx .I wonder if the file is uploaded

I have uploaded a image(2MB) named fox1 via windows desktop


it’s all fine if i checked it with desktop

if i click ‘’ share links’’ and i get : https://ipfs.io/ipfs/QmQmgCHB5wd1LCRDCYXW4VPvSmsUDhYfgGxerpre6xWz8v?filename=fox1.jpeg
When i open the links in Google Chrome and the links turn into http://bafybeibeecjpfcy44hvqrdvttfm6uwquk6ixvz23fukptkmqsbeyftrou4.ipfs.localhost:8080/?filename=fox1.jpeg and show it normally.

But if i use other Browser(Microsoft Edge) and another PC or phone with that links, nothing happend and no image showed until time-out


so i suspect that the file still store locally not be uploaded online or the upload process take time(it’s already 2 hours later) , Could someone help?

If you’re behind a NAT, have you tried forwarding port 4001?

Sorry i am novice with ipfs ,could you pls explain more or what should i do

type ipfs id to check what address you announce to network.

1 Like


DId you mean that i change 5001 just to 4001

What should i do after that?

“ID”: “12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm”,
“PublicKey”: “CAESIKNuFhhKRca5GzzReHsYs+MvKu+ybICmvSNksDiylyXs”,
“Addresses”: [
“/ip4/127.0.0.1/tcp/4001/p2p/12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm”,
“/ip4/127.0.0.1/udp/4001/quic/p2p/12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm”,
“/ip4/192.168.10.101/tcp/4001/p2p/12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm”,
“/ip4/192.168.10.101/udp/4001/quic/p2p/12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm”,
“/ip4/87.138.167.17/tcp/39778/p2p/12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm”,
“/ip4/87.138.167.17/tcp/4001/p2p/12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm”,
“/ip4/87.138.167.17/udp/39778/quic/p2p/12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm”,
“/ip4/87.138.167.17/udp/4001/quic/p2p/12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm”,
“/ip6/::1/tcp/4001/p2p/12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm”,
“/ip6/::1/udp/4001/quic/p2p/12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm”
],
“AgentVersion”: “go-ipfs/0.8.0/”,
“ProtocolVersion”: “ipfs/0.1.0”,
“Protocols”: [
“/ipfs/bitswap”,
“/ipfs/bitswap/1.0.0”,
“/ipfs/bitswap/1.1.0”,
“/ipfs/bitswap/1.2.0”,
“/ipfs/id/1.0.0”,
“/ipfs/id/push/1.0.0”,
“/ipfs/ping/1.0.0”,
“/libp2p/autonat/1.0.0”,
“/libp2p/circuit/relay/0.1.0”,
“/p2p/id/delta/1.0.0”,
“/x/”
]
}

Your machine self determined that it is accessible from internet and broadcasting public IP address, thats good. I cant connect to it now, is your node running right now?

ipfs swarm connect /ip4/87.138.167.17/tcp/4001/p2p/12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm
Error: connect 12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm failure: failed to dial 12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm: all dials failed
  • [/ip4/87.138.167.17/tcp/4001] dial tcp4 87.138.167.17:4001: connectex: No connection could be made because the target machine actively refused it.
  • [/ip4/87.138.167.17/tcp/39778] dial tcp4 87.138.167.17:39778: i/o timeout

No, that’s the API address, it’s fine at 5001.

My ipfs node is running now

I think its windows firewall issue. If you want to disable it for a while send me msg i will recheck connection.

I have disable ,you can try ,But i dont think so, first I have check the firewall ,ipfs are allowed and i have install an IPfs node also on a raspberry pi ,It have the same case.

I still get connection refused.

Error: connect 12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm failure: failed to dial 12D3KooWLpKz3tdEehMGPX42HPeSL4deyU6uMv4WbVHD2dgXbMqm: all dials failed

  • [/ip4/87.138.167.17/tcp/4001] dial tcp4 87.138.167.17:4001: connect: connection refused

this is ipfs id on my raspberry pi,Could you pls try it ? I will make this node always online
pi@raspberrypi:~ $ ipfs id
{
“ID”: “12D3KooWNiyuZBv5LG4Zvvywzi8QTTZ1jAKu3eNLBz6egyDhN4Z4”,
“PublicKey”: “CAESIL/G2rsLVKtef4Po0QxDKt9olySLVnsK28F07Z2dHeR3”,
“Addresses”: [
“/ip4/127.0.0.1/tcp/4001/p2p/12D3KooWNiyuZBv5LG4Zvvywzi8QTTZ1jAKu3eNLBz6egyDhN4Z4”,
“/ip4/127.0.0.1/udp/4001/quic/p2p/12D3KooWNiyuZBv5LG4Zvvywzi8QTTZ1jAKu3eNLBz6egyDhN4Z4”,
“/ip4/192.168.10.104/tcp/4001/p2p/12D3KooWNiyuZBv5LG4Zvvywzi8QTTZ1jAKu3eNLBz6egyDhN4Z4”,
“/ip4/192.168.10.104/udp/4001/quic/p2p/12D3KooWNiyuZBv5LG4Zvvywzi8QTTZ1jAKu3eNLBz6egyDhN4Z4”,
“/ip4/87.138.167.17/tcp/63740/p2p/12D3KooWNiyuZBv5LG4Zvvywzi8QTTZ1jAKu3eNLBz6egyDhN4Z4”,
“/ip4/87.138.167.17/udp/63740/quic/p2p/12D3KooWNiyuZBv5LG4Zvvywzi8QTTZ1jAKu3eNLBz6egyDhN4Z4”,
“/ip6/::1/tcp/4001/p2p/12D3KooWNiyuZBv5LG4Zvvywzi8QTTZ1jAKu3eNLBz6egyDhN4Z4”,
“/ip6/::1/udp/4001/quic/p2p/12D3KooWNiyuZBv5LG4Zvvywzi8QTTZ1jAKu3eNLBz6egyDhN4Z4”
],
“AgentVersion”: “go-ipfs/0.8.0/”,
“ProtocolVersion”: “ipfs/0.1.0”,
“Protocols”: [
“/ipfs/bitswap”,
“/ipfs/bitswap/1.0.0”,
“/ipfs/bitswap/1.1.0”,
“/ipfs/bitswap/1.2.0”,
“/ipfs/id/1.0.0”,
“/ipfs/id/push/1.0.0”,
“/ipfs/lan/kad/1.0.0”,
“/ipfs/ping/1.0.0”,
“/libp2p/autonat/1.0.0”,
“/libp2p/circuit/relay/0.1.0”,
“/p2p/id/delta/1.0.0”,
“/x/”
]
}

IPFS has builtin connect test. If it is behind NAT it asks other node what is your node public IP then it asks other node to connect back. If all these 2 things work then it broadcasts its public IP like your node does.

Because of these tests if node broadcasts public ip it confirms that it is reachable from outside. I dont remember case like yours. Something must filter traffic and it didnt when your node started.

Error: connect 12D3KooWNiyuZBv5LG4Zvvywzi8QTTZ1jAKu3eNLBz6egyDhN4Z4 failure: failed to dial 12D3KooWNiyuZBv5LG4Zvvywzi8QTTZ1jAKu3eNLBz6egyDhN4Z4: all dials failed

  • [/ip4/87.138.167.17/tcp/63740] dial tcp4 87.138.167.17:63740: connect: connection refused
  • [/ip4/87.138.167.17/udp/63740/quic] NO_ERROR: Handshake did not complete in time

Situation on rpi is different from your previous machine. RPI used upnp router feature to setup router port forwarding because high port number is used (tcp/63740) it passed start up check but doesnt work now your router probably do not forward traffic anymore.

1 Like

Does it have something to do with my network, because the wireless network I use requires a user name and password to connect

And the problem is back to the beginning, my IPfs can find other peers, but the uploaded file can’t be searched even though it gets hash

In RPI case this How to Set Up Port Forwarding on a Router (with Pictures) procedure is needed. referenced guide is quite complicated you might seek for easier one.

Windows machine should work out of box like mine does but you can use same manual port forward method for it as well.

you need static ip on your lan and setup home router to forward port A (tcp and udp) to windows IP:4001 and port B to rpi port 4001. A and B can be any number. for easier setup use 4001 and try to get one machine working.

Use page like https://ismyportopen.com/ for initial test that your port forwarding on router is ok.