Unfortunately the "nc -l -p" could be incompatible with some versions of netcat, for example the one which comes with ubuntu.