netcat Questions

2

Solved

I'm trying to create a persistent connection using bash. On terminal 1, I keep a netcat running as a server: $ nc -vlkp 3000 Listening on [0.0.0.0] (family 0, port 3000) On terminal 2, I create ...
Indochina asked 14/2, 2015 at 8:0

3

Solved

As the basis for a larger script I'm trying to write I'm trying to basically implement a basic netcat client in bash. My current script techincally works, it looks like this: #!/bin/bash exec 3&l...
Sicular asked 24/8, 2012 at 23:53

6

Solved

So, I have to retrieve temperature from any one of the cities from http://www.rssweather.com/dir/Asia/India. Let's assume I want to retrieve of Kanpur's. How to make an HTTP GET request with Net...
Overnight asked 1/9, 2015 at 21:56

17

I'm trying to set up a minimal web server using netcat (nc). When the browser calls up localhost:1500, for instance, it should show the result of a function (date in the example below, but eventual...
Distefano asked 19/5, 2013 at 22:17

13

Solved

I'm trying to do a custom dockerfile with jenkins on it. I would to wait until port 8080 is open instead of doing an ugly 'sleep 60' with netcat but I'm not very confident with bash scripts and net...
Indehiscent asked 22/12, 2014 at 9:27

4

Solved

I found this and am using it as my base, but it wasn't working right out of the box. My goal is also to treat it as a package instead of a command line utility, so my code changes will reflect that...
Aeneous asked 15/12, 2009 at 17:1

4

How can I save result from nc to the variable? I want: nc: connect to localhost port 1 (tcp) failed: Connection refused on my variable. I tried: a="$(nc -z -v localhost 1)" echo $a but out...
Fretted asked 13/3, 2013 at 16:39

4

Solved

I have two virtual machines open, one is listening on the connection, the other connects with nc <ip> <port> from a python subprocess call. I want to send just 1 line of text over the c...
Kore asked 23/5, 2016 at 10:58

3

Solved

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 < /dev/null; echo $? Netcat checks if the port is open and returns a 0...
Enjoyable asked 24/2, 2014 at 8:11

2

Solved

Problem I have been trying to use Ncat to view some TCP traffic on a CentOS virtual box. However, on this particular machine I can't even establish a simple server/client communication. I open a ...
Ballentine asked 23/5, 2018 at 17:32

6

I want to send only one short value in a UDP packet, but running the command echo -n "hello" | nc -4u localhost 8000 I can see that the server is getting the hello stuff but I have to press Ctrl...
Clothes asked 14/3, 2012 at 4:52

1

Solved

When I try to install Redmail I get the error: Package netcat is a virtual package provided by: netcat-traditional 1.10-47 netcat-openbsd 1.218-5ubuntu1 E: Package 'netcat' has no installation c...
Glede asked 8/1, 2023 at 23:29

2

I've got some binary commands (which I'm representing as hex) that I need to send to a remote device (it's an embedded data collection device) and observe the reply. It's easy to connect to it wi...
Filiano asked 11/5, 2017 at 15:33

4

Solved

I have an embedded linux application with a simple interactive command line interface. I'd like to access the command line from telnet (or network, in general). However, the process should be sta...
Riband asked 30/3, 2016 at 14:6

3

Solved

I try to get zookeeper stat from shell by using nc, call nc localhost 2181 first, then type in: stat works. while echo "stat" | nc localhost 2181 returns nothing. why?
Witcher asked 18/2, 2014 at 7:11

3

Solved

If I want to transfer a binary file "binary.bin" (located in the same directory as NetCat) to IP address 127.0.0.1 port 1200 using TCP, how do I specify this using NetCat for windows?
Unfolded asked 11/1, 2010 at 9:18

2

Solved

I am sending a command to a Teledyne LeCroy T3PS3000 power supply device over TCP Ethernet using netcat (nc) on Linux Ubuntu 18.04 and 20.04. If I use echo the device fails to properly receive the ...
Appling asked 17/11, 2021 at 8:43

9

Solved

Using ubuntu tusty, there is a service running on a remote machine, that I can access via port forwarding through an ssh tunnel from localhost:9999. I have a docker container running. I need to ac...
Matthaeus asked 25/8, 2016 at 11:9

7

Solved

How to create a TCP connection using nc which listens to multiple hosts? nc -l -p 12345
Cybill asked 19/4, 2015 at 9:36

2

Solved

When I run the following command: nc -luvp 9090, I get the error: getnameinfo: Temporary failure in name resolution I've scanned the internet in search of an answer, but none of them were valid: ...
Hootman asked 6/5, 2020 at 23:9

3

Solved

I have a project I'm working on, where a piece of Hardware is producing output that is continuously being written into a textfile. What I need to do is to stream that file as it's being written ove...
Hindquarter asked 3/6, 2010 at 16:2

2

Solved

I am a beginner in docker . I have installed docker-ce in my ubuntu 18.04 machine using commandsudo apt install docker-ce As part of a tutorial , I am trying to establish connection between contai...
Masefield asked 29/9, 2018 at 15:51

5

Solved

Why does the following netcat command not time out if the attempt to connect takes longer than 3 seconds (ie: when the port isn't open)? I assumed that the -w flag would be what I needed. OS is OSX...
Gianna asked 13/6, 2014 at 5:42

2

I need to sendo a lot of messages via netcat or something similar. The problem is that when I run echo "something" | netcat ip port the connection continues opened after I received the response. Ac...
Colleen asked 18/1, 2019 at 14:27

2

What are .sock files? How can I communicate with a .sock file? Elaborating on the 2nd bullet, I understand that .sock files are for Inter-process communication. How can I 'communicate' with them...
Telephony asked 1/10, 2018 at 22:41

© 2022 - 2024 — McMap. All rights reserved.