

nc will listen forever for a connection, with or without the -w flag. The -w flag has no effect on the -l option, i.e. The default is 0.Ĭonnections which cannot be established or are idle timeout after timeout seconds. If a UNIX-domain socket is used, a temporary receiving socket is created in /tmp unless the -s flag is given. For UNIX-domain sockets, use a datagram socket instead of a stream socket. Use UDP instead of the default option of TCP. This makes it possible to use nc to script telnet sessions.
PLAYONLINUX NC NETCAT CODE
toskeyword may be one of critical, inetcontrol, lowcost, lowdelay, netcontrol, throughput, reliability, or one of the DiffServ Code Points: ef, af11 … af43, cs0 … cs7 or a number in either hex or decimal.Ĭauses nc to send RFC 854 DON’T and WON’T responses to RFC 854 DO and WILL requests.

It is an error to use this option in conjunction with the -l option.Ĭhange IPv4 TOS value. For UNIX-domain datagram sockets, specifies the local temporary socket file to create and use so that datagrams can be received. Specifies the IP of the interface which is used to send the packets. Specifies that source and/or destination ports should be chosen randomly instead of sequentially within a range or in the order that the system assigns them.Įnables the RFC 2385 TCP MD5 signature option. Specifies the source port nc should use, subject to privilege restrictions and availability.Īfter EOF on stdin, wait the specified number of seconds and then quit. Proxy authentication is only supported for HTTP CONNECT proxies at present. If no username is specified then authentication will not be attempted. Specifies a username to present to a proxy server that requires authentication. Specifies the size of the TCP send buffer. Additionally, any timeouts specified with the -w option are ignored.ĭo not do any DNS or service lookups on any specified addresses, hostnames or ports. It is an error to use this option in conjunction with the -p, -s, or -z options. Used to specify that nc should listen for an incoming connection rather than initiate a connection to a remote host. It is an error to use this option without the -l option. Also causes a delay time between connections to multiple ports.įorces nc to stay listening for another connection after its current connection is completed. Specifies a delay time interval between lines of text sent and received. Specifies the size of the TCP receive buffer.
