formatting fix, add example and pointer to relay
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Jan 12, 2018 at 10:02 UTC
4fbcd1baeaca7e56851fe84d1df7d4f8174263bc
1 file changed
+19
-4
docs/file-transfer.md
+19
-4
@@ -13,6 +13,17 @@ node you want to get the file to node 'B'. On node A, add the file to ipfs
13
using the `ipfs add` command. This will print out the multihash of the content
14
you added. Now, on node B, you can fetch the content using `ipfs get <hash>`.
15
16
+```
17
+# On A
18
+> ipfs add myfile.txt
19
+added QmZJ1xT1T9KYkHhgRhbv8D7mYrbemaXwYUkg7CeHdrk1Ye myfile.txt
20
+
21
+# On B
22
+> ipfs get QmZJ1xT1T9KYkHhgRhbv8D7mYrbemaXwYUkg7CeHdrk1Ye
23
+Saving file(s) to QmZJ1xT1T9KYkHhgRhbv8D7mYrbemaXwYUkg7CeHdrk1Ye
24
+ 13 B / 13 B [=====================================================] 100.00% 1s
25
+ ```
26
+
27
If that worked, and downloaded the file, then congratulations! You just used
28
ipfs to move files across the internet! But, if that `ipfs get` command is
29
hanging, with no output, read onwards.
@@ -91,7 +102,11 @@ situation. If this is the case, you can try to enable upnp or NAT-PMP on the
102
router of node A and retry the process. Otherwise, you can try manually
103
connecting node A to node B.
104
94
-### Manually connecting node A to B On node B, run `ipfs id` and take one of
95
-the multiaddrs that contains its public ip address, and then on node A run
96
-`ipfs swarm connect <multiaddr>`. If that *still* doesn't work, then you
97
-should either join IRC and ask for help there, or file an issue on github.
105
+### Manually connecting node A to B
106
+
107
+On node B run `ipfs id` and take one of the multiaddrs that contains its public
108
+ip address, and then on node A run `ipfs swarm connect <multiaddr>`. You can
109
+also try using a relayed connection, for more information [read this
110
+doc](./experimental-features.md#circuit-relay). If that *still* doesn't work,
111
+then you should either join IRC and ask for help there, or file an issue on
112
+github.