From 309516ce78264501eea59834bf87436ce536d24c Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Sat, 30 Aug 2014 16:15:53 +0100 Subject: [PATCH] correct ports in example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b3c888d5..5c1c3023 100644 --- a/README.md +++ b/README.md @@ -194,7 +194,7 @@ Now will work. And, more interestingly, host2# ping 10.0.1.1 - host2# echo 'Hello, world.' | nc -u 10.0.1.1 1122 + host2# echo 'Hello, world.' | nc -u 10.0.1.1 4422 will work too, which is interacting with a container that resides on $HOST1. @@ -228,7 +228,7 @@ container with IP 10.0.1.1. With the above in place, we can connect to our 'nc' service from anywhere with - echo 'Hello, world.' | nc -u $HOST2 4422 + echo 'Hello, world.' | nc -u $HOST2 2211 (NB: due to the way routing is handled in the Linux kernel, this won't work when run *on* $HOST2.)