From owner-freebsd-hackers Thu May 21 13:24:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA21256 for freebsd-hackers-outgoing; Thu, 21 May 1998 13:24:03 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA21118 for ; Thu, 21 May 1998 13:23:45 -0700 (PDT) (envelope-from roberto@keltia.freenix.fr) Received: (from uucp@localhost) by frmug.org (8.9.0.Beta7/frmug-2.3/nospam) with UUCP id WAA27419; Thu, 21 May 1998 22:23:01 +0200 (CEST) (envelope-from roberto@keltia.freenix.fr) Received: (from roberto@localhost) by keltia.freenix.fr (8.9.0.Beta4/keltia-2.14/nospam) id WAA16633; Thu, 21 May 1998 22:20:05 +0200 (CEST) (envelope-from roberto) Message-ID: <19980521222005.A16589@keltia.freenix.fr> Date: Thu, 21 May 1998 22:20:05 +0200 From: Ollivier Robert To: Peter Dufault , hackers@FreeBSD.ORG Subject: Re: Talking UDP at a given port? Mail-Followup-To: Peter Dufault , hackers@FreeBSD.ORG References: <199805211655.MAA13751@hda.hda.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.92.3i In-Reply-To: <199805211655.MAA13751@hda.hda.com>; from Peter Dufault on Thu, May 21, 1998 at 12:55:03PM -0400 X-Operating-System: FreeBSD 3.0-CURRENT ctm#4308 AMD-K6 MMX @ 225 MHz Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG According to Peter Dufault: > I just got a device that talks ASCII at a UDP port. What > is the way to initially poke at this think without writing a > program? I can write one but figure I should know this. Maybe with netcat (in ports), it has a UDP mode: connect to somewhere: nc [-options] hostname port[s] [ports] ... listen for inbound: nc -l -p port [-options] [hostname] [port] options: -g gateway source-routing hop point[s], up to 8 -G num source-routing pointer: 4, 8, 12, ... -h this cruft -i secs delay interval for lines sent, ports scanned -l listen mode, for inbound connects -n numeric-only IP addresses, no DNS -o file hex dump of traffic -p port local port number -r randomize local and remote ports -s addr local source address -u UDP mode -v verbose [use twice to be more verbose] -w secs timeout for connects and final net reads -z zero-I/O mode [used for scanning] port numbers can be individual or ranges: lo-hi [inclusive] -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 3.0-CURRENT #60: Fri May 15 21:04:22 CEST 1998 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message