Lines Matching +full:host +full:- +full:port

38 .Bk -words
43 .Op Fl -lb
44 .Op Fl -no-tcpopt
45 .Op Fl -sctp
46 .Op Fl -crlf
52 .Op Fl -tun Ar tundev
58 .Ar port Oc
61 .Op Ar port
70 .Ux Ns -domain
73 TCP and UDP ports, do port scanning, and deal with both IPv4 and
85 .Bl -bullet -offset indent -compact
89 shell-script based HTTP clients and servers
100 .Bl -tag -width Ds
109 .It Fl -crlf
118 .Li "-e 'in ipsec esp/transport//require'"
119 .Li "-e 'out ipsec esp/transport//require'"
169 connection to a remote host.
179 .It Fl -lb
182 put the socket in load-balancing mode.
183 In this mode, multiple sockets can bind to the same address and port,
186 Collect per-connection TCP statistics using the
198 .It Fl -no-tcpopt
202 .It Fl -sctp
211 Specifies the source port
226 .Ux Ns -domain
254 .It Fl -tun Ar tundev
262 .Ux Ns -domain
267 .Ux Ns -domain
270 .Ux Ns -domain
313 .Ar port Oc
322 .Ar port .
324 .Ar port
325 is not specified, the well-known port for the proxy protocol is used (1080
345 (in which case the local host is used).
347 .Ux Ns -domain
353 .Ar port
354 can be a specified as a numeric port number, or as a service name.
355 Ports may be specified in a range of the form nn-mm.
357 a destination port must be specified,
366 listening on a specific port for a connection.
369 .Dl $ nc -l 1234
372 is now listening on port 1234 for a connection.
375 connect to the machine and port being listened on:
381 and vice-versa.
400 to listen on a specific port, with output captured into a file:
402 .Dl $ nc -l 1234 \*(Gt filename.out
408 .Dl $ nc -N host.example.com 1234 \*(Lt filename.in
419 .Bd -literal -offset indent
420 $ printf "GET / HTTP/1.0\er\en\er\en" | nc host.example.com 80
431 .Bd -literal -offset indent
433 HELO host.example.com
434 MAIL FROM:\*(Ltuser@host.example.com\*(Gt
435 RCPT TO:\*(Ltuser2@host.example.com\*(Gt
442 .Sh PORT SCANNING
452 .Bd -literal -offset indent
453 $ nc -z host.example.com 20-30
454 Connection to host.example.com 22 port [tcp/ssh] succeeded!
455 Connection to host.example.com 25 port [tcp/smtp] succeeded!
458 The port range was specified to limit the search to ports 20 \- 30.
470 .Bd -literal -offset indent
471 $ echo "QUIT" | nc host.example.com 20-30
472 SSH-1.99-OpenSSH_3.6.1p2
474 220 host.example.com IMS SMTP Receiver Version 0.84 Ready
477 Open a TCP connection to port 42 of host.example.com, using port 31337 as
478 the source port, with a timeout of 5 seconds:
480 .Dl $ nc -p 31337 -w 5 host.example.com 42
482 Open a UDP connection to port 53 of host.example.com:
484 .Dl $ nc -u host.example.com 53
486 Open a TCP connection to port 42 of host.example.com using 10.1.2.3 as the
489 .Dl $ nc -s 10.1.2.3 host.example.com 42
491 Open a TCP connection to port 42 of host.example.com using IPsec ESP for
494 .Dl $ nc -E host.example.com 42
496 Open a TCP connection to port 42 of host.example.com using IPsec ESP for
499 .Dl $ nc -e 'out ipsec esp/transport//require' host.example.com 42
502 .Ux Ns -domain
505 .Dl $ nc -lU /var/tmp/dsocket
507 Connect to port 42 of host.example.com via an HTTP proxy at 10.2.3.4,
508 port 8080.
517 .Dl $ nc -x10.2.3.4:8080 -Xconnect host.example.com 42
523 .Dl $ nc -x10.2.3.4:8080 -Xconnect -Pruser host.example.com 42
525 .Ex -std
538 UDP port scans using the