X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=AKgN/yQl9BqzFdIb8kpT0fKm23u8iRpVzHPMK8KbQPN kCbLdWSDu8EjbNNTR5DpHHlPv2bougCoW65fIPAOnRic15bzUktpxeE+S+WQ1Y44 GUR0sk4h2ifP0cSNw5C2drTCVhqvbS+QeL8vcSsdJsn+T8tmAtLvBH3Uc+Wh73sM = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-type:content-transfer-encoding; s=default; bh=FXiYAwGVT3RAfRmHm7Lmk3fiuDs=; b=RPW5Ev9fs40bwwe3a JiAtqx0KyW26PEStSGl7igWuTBBrK8qB1qnFzpa7pBVXU4lAFOxVc0aM17eMJUfz hDjBRVYx16CxGzzzluyU4N8ON+v4KEKAO5q7XqF67yFel+8fp6DQulFChPMkqfLy RY3LwXP3VQUM3/e4bu5p+K/Tzo= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=AWL,BAYES_50,CYGWIN_OWNER_BODY,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=H*UA:16.0, D*139.com, H*x:16.0, sk:gao_fen X-HELO: n9-37.mail.139.com X-RM-TagInfo: emlType=0 X-Richmail-Antispam: sCL2rVi0borhSzeOjpYxWEmrxqxSIjpgsIL2jVqxeZIR0RM= X-RM-SPAM-FLAG:00000000 Received:from Opti9020 (unknown[124.127.39.210]) by rmsmtp-rmapp-18-12045 (RichMail) with SMTP id 2f0d58ddb38673c-16967; Fri, 31 Mar 2017 09:40:23 +0800 (CST) X-RM-TRANSID:2f0d58ddb38673c-16967 From: "gaofeng" To: References: <001e01d2a8fc$c8d76530$5a862f90$@139.com> In-Reply-To: Subject: RE: problem with nc 1.107-4 Date: Fri, 31 Mar 2017 09:40:29 +0800 Message-ID: <000001d2a9bf$c77be940$5673bbc0$@139.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v2V1euH3027316 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 AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of David Bala?ic Sent: Thursday, March 30, 2017 10:58 PM To: cygwin AT cygwin DOT com 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 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