0

I followed the standard procedure to connect via an access port, based on the following commands:

nc -l -pxxxx

nc <ip address> -pxxxx

However when I enter the second command on another terminal no connection happens, and I just get:

aOpenBSD netcat (Debian patchlevel 1.187-1ubuntu0.1) usage: nc [-46CDdFhklNnrStUuvZz] [-I length] [-i interval] [-M ttl] [-m minttl] [-O length] [-P proxy_username] [-p source_port] [-q seconds] [-s source] [-T keyword] [-V rtable] [-W recvlimit] [-w timeout] [-X proxy_protocol] [-x proxy_address[:port]] [destination] [port]

closed as off-topic by Eric Carvalho, Fabby, Kulfy, Pablo A, vidarlo Jun 16 at 13:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This describes a problem that can't be reproduced, that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." – Eric Carvalho, Fabby, Kulfy, Pablo A, vidarlo
If this question can be reworded to fit the rules in the help center, please edit the question.

1

The reason was so simple. The second command should not contain -p.

  • 1
    My bad everyone :) – softwareexchange Jun 12 at 20:55
  • Attention LQ reviewers: Self-answer! VTC Q instead of A! – Fabby Jun 13 at 16:15

Not the answer you're looking for? Browse other questions tagged or ask your own question.