Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 1998 22:20:05 +0200
From:      Ollivier Robert <roberto@keltia.freenix.fr>
To:        Peter Dufault <dufault@hda.com>, hackers@FreeBSD.ORG
Subject:   Re: Talking UDP at a given port?
Message-ID:  <19980521222005.A16589@keltia.freenix.fr>
In-Reply-To: <199805211655.MAA13751@hda.hda.com>; from Peter Dufault on Thu, May 21, 1998 at 12:55:03PM -0400
References:  <199805211655.MAA13751@hda.hda.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980521222005.A16589>