aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorValentin Trophime <[email protected]>2024-01-29 11:36:03 +0100
committerGitHub <[email protected]>2024-01-29 11:36:03 +0100
commit283debfda4b84a15e3f6de551256b9a65c729715 (patch)
treeb4550d0d7ca3ad01cda5ce91023385ccbf52261c /examples
parent702007f68b31718d0bea5af403c4c0a299fb6b6e (diff)
fix: typo in netcat command for std example
The previous given command `nc -l 8000` doesn't let me see anything and lead to a "WARN connect error: ConnectionReset". By explicitly changing the `local-port` of `nc` with the `-p` I can now see the `Hello` message printed, and the warning log disappeared.
Diffstat (limited to 'examples')
-rw-r--r--examples/std/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/std/README.md b/examples/std/README.md
index adc795928..e3a59d6ea 100644
--- a/examples/std/README.md
+++ b/examples/std/README.md
@@ -13,11 +13,11 @@ sudo ip -6 route add fe80::/64 dev tap0
13sudo ip -6 route add fdaa::/64 dev tap0 13sudo ip -6 route add fdaa::/64 dev tap0
14``` 14```
15 15
16Second, have something listening there. For example `nc -l 8000` 16Second, have something listening there. For example `nc -lp 8000`
17 17
18Then run the example located in the `examples` folder: 18Then run the example located in the `examples` folder:
19 19
20```sh 20```sh
21cd $EMBASSY_ROOT/examples/std/ 21cd $EMBASSY_ROOT/examples/std/
22cargo run --bin net -- --static-ip 22cargo run --bin net -- --static-ip
23``` \ No newline at end of file 23```