This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: problem with nc 1.107-4

The manual saying:

NC(1)                     BSD General Commands Manual                    NC(1)

     nc — arbitrary TCP and UDP connections and listens

     nc [-46CDdhklnrStUuvz] [-I length] [-i interval] [-O length]
        [-P proxy_username] [-p source_port] [-s source] [-T toskeyword]
        [-V rtable] [-w timeout] [-X proxy_protocol] [-x proxy_address[:port]]
        [destination] [port]

     The nc (or netcat) utility is used for just about anything under the sun
     involving TCP, UDP, or UNIX-domain sockets.  It can open TCP connections,
     send UDP packets, listen on arbitrary TCP and UDP ports, do port scan‐
     ning, and deal with both IPv4 and IPv6.  Unlike telnet(1), nc scripts
     nicely, and separates error messages onto standard error instead of
     sending them to standard output, as telnet(1) does with some.
     -u      Use UDP instead of the default option of TCP.  For UNIX-domain
             sockets, use a datagram socket instead of a stream socket.  If a
             UNIX-domain socket is used, a temporary receiving socket is cre‐
             ated in /tmp unless the -s flag is given.

     It may be useful to know which ports are open and running services on a
     target machine.  The -z flag can be used to tell nc to report open ports,
     rather than initiate a connection.  For example:

     Open a UDP connection to port 53 of

           $ nc -u 53

-----Original Message-----
From: [] On Behalf Of David Bala?ic
Sent: Thursday, March 30, 2017 10:58 PM
Subject: Re: problem with nc 1.107-4

On 30 March 2017 at 04:24, 高锋 <> wrote:
> I just installed the latest nc 1.107-4 on windows 7 platform.When 
> lauched the command like:
> nc -vuz 6110
> ,each time it reported connecting successed,even if the target ip
> does not really exists.

What exactly does it say?
Because with UDP there are no connections, so there can not be any successful connection.


Problem reports:
Unsubscribe info:

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]