correct ports in example
This commit is contained in:
1 parent
1274dc6e01
commit
309516ce78
1 file changed
+2
-2
@@ -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.)
|
||||
|
||||
Reference in new issue
Block a user