Fixes the flags for nc

The `-p` flag for `nc` should not be used with `-l`.
Merge pull request #2421 from dudebout/patch-1

Fixes the flags for nc in example