Top "Netcat" questions

netcat is a command for performing read/write operations on TCP or UDP network connections.

How can I close a netcat connection after a certain character is returned in the response?

We have a very simple tcp messaging script that cats some text to a server port which returns and displays …

linux bash netcat
How to use NetCat for Windows to send a binary file to a TCP connection?

If I want to transfer a binary file "binary.bin" (located in the same directory as NetCat) to IP address 127.0.0.1 …

windows binary tcp ip-address netcat
Bash: Loop until command exit status equals 0

I have a netcat installed on my local machine and a service running on port 25565. Using the command: nc 127.0.0.1 25565 < /…

linux bash loops netcat
Continuously listen to tcp port via terminal

Is it possible to listen to a port continuously? I listen for incoming tcp notifications with following command sudo nc …

terminal netcat
How can I tail a remote file?

I am trying to find a good way to tail a file on a remote host. This is on an …

perl scripting ssh tail netcat
Starting a TCP server from terminal

How do I start a TCP server from the terminal on port 13370 using nc? I was following a tutorial that …

macos tcp terminal netcat
Send text file, line by line, with netcat

I'm trying to send a file, line by line, with the following commands: nc host port < textfile cat textfile | …

shell unix netcat
Using netcat/cat in a background shell script (How to avoid Stopped (tty input)? )

Abstract: How to run an interactive task in background? Details: I am trying to run this simple script under ash …

shell input background tty netcat
Strange behaviour of netcat with UDP

I noticed a strange behaviour working with netcat and UDP. I start an instance (instance 1) of netcat that listens on …

networking udp netcat
How to send one byte symbol to server socket with netcat?

There's already a working server service via socket, and I would like to test it via netcat. I'm using Mac …

sockets netcat