benrady / shinatra

A simple web server in 5 lines of bash
811 stars 81 forks source link

Use -p flag in nc #12

Closed nir0s closed 6 years ago

nir0s commented 7 years ago

Am I wrong to assume that -p will always work?

hmemcpy commented 7 years ago

Yup, I needed the -p flag to make this work inside a docker container...

benrady commented 7 years ago

For BSD netcat, the -p option is incompatible with the -l option. From the man page:

     -p source_port
             Specifies the source port nc should use, subject to privilege
             restrictions and availability.  It is an error to use this option
             in conjunction with the -l option.

What netcat are you using?

nir0s commented 7 years ago

0.7.1 on rolling arch