public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* problem with nc 1.107-4
@ 2017-03-30  2:56 高锋
  2017-03-30  6:28 ` Michael Enright
  2017-03-30 16:44 ` David Balažic
  0 siblings, 2 replies; 4+ messages in thread
From: 高锋 @ 2017-03-30  2:56 UTC (permalink / raw)
  To: cygwin

I just installed the latest nc 1.107-4 on windows 7 platform.When lauched
the command like:
nc -vuz 10.31.28.188 6110
,each time it reported connecting successed,even if the target ip
10.31.28.188 does not really exists.
Could someone tell what wrong with me?



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with nc 1.107-4
  2017-03-30  2:56 problem with nc 1.107-4 高锋
@ 2017-03-30  6:28 ` Michael Enright
  2017-03-30 16:44 ` David Balažic
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Enright @ 2017-03-30  6:28 UTC (permalink / raw)
  To: cygwin

On Wed, Mar 29, 2017 at 7:24 PM, 高锋  wrote:
> I just installed the latest nc 1.107-4 on windows 7 platform.When lauched
> the command like:
> nc -vuz 10.31.28.188 6110
> ,each time it reported connecting successed,even if the target ip
> 10.31.28.188 does not really exists.
> Could someone tell what wrong with me?
>

It's possible that you are accustomed to using, or using a script
written for, the 'nc' command that was included in the 'netcat'
package, which was superceded in Cygwin some years ago. This could
have happened if you were using Cygwin 1.7 (I think) and then upgraded
to a brand new version of Cygwin. It is common, in my experience, that
someone would have installed an old version of Cygwin, used it for
years, and then upgraded to a new version.

Message from Vinschen about this change:
https://cygwin.com/ml/cygwin-announce/2012-05/msg00015.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with nc 1.107-4
  2017-03-30  2:56 problem with nc 1.107-4 高锋
  2017-03-30  6:28 ` Michael Enright
@ 2017-03-30 16:44 ` David Balažic
  2017-03-31  7:56   ` gaofeng
  1 sibling, 1 reply; 4+ messages in thread
From: David Balažic @ 2017-03-30 16:44 UTC (permalink / raw)
  To: cygwin

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

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

Regards,
David

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: problem with nc 1.107-4
  2017-03-30 16:44 ` David Balažic
@ 2017-03-31  7:56   ` gaofeng
  0 siblings, 0 replies; 4+ messages in thread
From: gaofeng @ 2017-03-31  7:56 UTC (permalink / raw)
  To: cygwin

The manual saying:

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

NAME
     nc — arbitrary TCP and UDP connections and listens

SYNOPSIS
     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]

DESCRIPTION
     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.

PORT SCANNING
     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:

EXAMPLES
     Open a UDP connection to port 53 of host.example.com:

           $ nc -u host.example.com 53

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

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

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

Regards,
David

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-31  1:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-30  2:56 problem with nc 1.107-4 高锋
2017-03-30  6:28 ` Michael Enright
2017-03-30 16:44 ` David Balažic
2017-03-31  7:56   ` gaofeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).