Score:0

Netcat on MacOS failing with simple commands

us flag

I'n trying to follow a tutorial here.

As an example we can say that we need a friend of ours to help us with something on our work system(Windows). To be able to receive a connection from us first our friend would need to set up a listener. nc -lvnp 4444

On my system, nc -nlvp 4444 fails with nc: missing port with option -l. I'm not sure why this is, as I've seen multiple tutorials with the same commands and it works fine. Is this a MacOS issue, or is it between keyboard and chair?

Michael Hampton avatar
cz flag
This question appears to be off topic. We don't accept general computer questions. You may be able to get help on one of our sister sites, such as [apple.se] or [su].
ph flag
The `nc` command isn't particularly portable, and the version on macOS takes slightly different options than the GNU version that command's probably intended for. Check the `man` page.
djdomi avatar
za flag
I had some similar issue in the past with NC and fixed it by `nc -nvp -l 4444` don't know why it seems to be a general issue
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.