I’m trying to set up a simple server that returns always the same response. Based on this question I’ve tried to use but on the client it shows only once. If I use the UDP option (-u), it works as intended. So I’m guessing it’s EOF’s fault. Is there a way to make it work as a reponse to the
Tag: netcat
showing status with large file transfers via netcat/nc
I am using nc/netcat to transfer a large tar stream. Is there a way for either side to show some kind of status? Like how much has been transferred and/or the speed while it is transferring? On the receiving end: On the sending end: Answer At its simplest, you could use pv – the pipe viewer: If you look in
Using netcat to issue a http get request in bash
I have written the following script (it does not support index yet). The issue I am having is regarding using netcat to load the page. I can do this manually using the command line but when I try to have my script issue the exact same commands I can it does nothing without error. The only possible thing I can
How to split given text into 3 variables in bash and send to host at port?
I want to write a command that listens to some port (say port 22222), receives a single line of text, and splits that line by spaces into port, host, and text by spaces. The text can have spaces in it too. So, for example, 1234 localhost blah de blah would be be split into 1234 for the port, localhost for
Netcat uses different port than requested
I have the following problem. I’m using Debian GNU/Linux Stretch and I am trying to use netcat as a simple server. I start it using following command: It starts just fine and accepts connections but on a different port than requested: This behavior is independent of requested port, user or ufw status. Recently I installed LXC with following packages: apparmor