Skip to main content

Questions tagged [socket]

is a data communications endpoint for exchanging data between processes executing within the same host operating system.

Filter by
Sorted by
Tagged with
0 votes
1 answer
69 views

I am new to socket programming & I have realized that most posix functions from libc require that you pass a buffer & a length. While I can understand this helps the functions to understand ...
Weezy's user avatar
  • 681
2 votes
1 answer
111 views

If you would open a listening socket on every possible TCP/UDP port (so thousands in total), without actually using them, what would be the cost in terms of performance? Is it merely an administrative ...
Maestro's user avatar
  • 233
2 votes
1 answer
400 views

Consider the topology where 2 QEMU VMs running Linux Ubuntu 16.04 kernel version 4.4.0-210 have both virtio-net interfaces with TAP backends connected to the same (host) Linux bridge and an SSH ...
CarloC's user avatar
  • 385
0 votes
1 answer
60 views

Is there a way to get struct msghdr or ancillary data of it for the last received packet, i.e. after the recv() call? My guess is that recvmsg() is the only way to populate msghdr, but probably there ...
Alex's user avatar
  • 1
2 votes
1 answer
223 views

I'd use socat to redirect the STDIN/STDOUT of the process executing docker run -it ubuntu bash command to a tcp socket in listening on port 32000. root@eve-ng:~# socat -d -d -d EXEC:'docker run -it ...
CarloC's user avatar
  • 385
1 vote
0 answers
186 views

I'd like to use socat to redirect the STDIN/STDOUT of the process executing docker attach <container-id> to a listening TCP socket on my Linux system. root@eve-ng:/opt/unetlab# tty /dev/pts/2 ...
CarloC's user avatar
  • 385
0 votes
0 answers
55 views

I'm building a simple shell server using raw Python sockets (not using telnetlib). The client connects using PuTTY with the Telnet connection type. The server displays a basic prompt like: [user@...
just.callme.client's user avatar
0 votes
1 answer
103 views

I'm currently testing the bluez tools like l2ping & l2test, So my intention was to interface between two devices through l2cap layer. I have cloned the bluez repository on two raspberry pi devices,...
Sandy's user avatar
  • 1
0 votes
0 answers
112 views

I am trying to understand why one of my system has /dev/log as a socket and other has /dev/log as a symbolic link. [ec2-user@ip-171-31-12-17 log]$ file /dev/log /dev/log: symbolic link to /run/systemd/...
Boogeyman's user avatar
0 votes
1 answer
136 views

Running mpd without any bind_to_address in the config starts a working UNIX socket at /run/user/1000/mpd/socket but also starts a network socket at 0.0.0.0:6600 / [::]:6600. I would like to have only ...
niklassc's user avatar
  • 113
7 votes
2 answers
2k views

If you've ever tried writing tools that depend upon ICMP echo requests, you've inevitably run into the same problem as everyone else: you can't do it unless your tool is running as root. When you try ...
Sniggerfardimungus's user avatar
1 vote
1 answer
184 views

I am trying to simulate a radio with a PTT button. Connected users should be able to live voice chat in the group, one at a time, while holding a button. I have a Ubuntu 22.04 server running, with ...
George Stefan Kudor-Ghitescu's user avatar
0 votes
0 answers
168 views

Does any one have a complete configuration of using Dovecot to handle OAuth2 tokens to allow Postfix to send mail to gmail? Most use cases found are either too old or not complete. I have done the ...
Dean Allard's user avatar
1 vote
2 answers
1k views

I stumbled over the following issue, while debugging ssh connections. I have a Ubuntu 24.04 with openssh-server installed. The corresponding systemd-service is running (now named ssh.service & ssh....
harry's user avatar
  • 11
10 votes
5 answers
1k views

I need a tool that tells me if a connection to a host is open or not -- no data to send or receive, just see if the connection is successful. Today I use telnet. $ telnet myhost myport Trying 192.168....
chris01's user avatar
  • 1,049
1 vote
1 answer
84 views

I'm trying to configure Focalboard to run in a specific subdirectory using Nginx. I followed the steps from the official Focalboard documentation and was able to set it up normally. However, after ...
siqueir4's user avatar
0 votes
1 answer
274 views

I noticed that receive and send buffers of UDP sockets have an overhead of approximately 600 bytes. That is, when I write 10 bytes of data to UDP socket, the actual structure stored in send/receive ...
Zhalgas Yerzhanov's user avatar
0 votes
1 answer
254 views

I'm going to start weston in a user service. Starting weston in a super user service is no problem. But when I'm starting weston by the regular user, the weston won't start due to this file Could not ...
euraad's user avatar
  • 219
1 vote
0 answers
37 views

So, I want to use an SSH tunnel proxy occasionally. But I don't want to fire it up manually every time. And this is a laptop so if I just start the SSH tunnel at startup it might die of an occasional ...
Mikhail Ramendik's user avatar
2 votes
1 answer
342 views

I have an 'understanding' question but it does have a real-world case that I've simplified out. Consider this sample network (with simplified IPs): From left to-right: Three hosts S1-S3 (IPs , ...
SmallClanger's user avatar
2 votes
0 answers
99 views

I have x11vnc running inside a docker container with alpine as base image. (5900 is exposed and mapped to hosts 5900) I use Xvfb as well. I run x11vnc inside the container using this command x11vnc -...
Tharusha Jayasooriya's user avatar
0 votes
0 answers
390 views

i've got the Systemd error Message: Sep 20 15:54:29 test systemd[9298]: HostnameResponder.socket: Failed to create listening socket (0.0.0.0:101): Permission denied Sep 20 15:54:29 test systemd[1]: ...
Rene's user avatar
  • 1
0 votes
1 answer
67 views

I have a modem that works via a USB interface (read/write messages to FTDI) but, can I turn it into an actual network interface so I can interact to it via sockets (SOCK_DGRAM)? Perhaps there are ...
unicorn_on_caf's user avatar
1 vote
0 answers
870 views

Fresh deployed Python FastAPI application to AWS Lambda. Python application uses ldap3 module to authorize user signing in against Windows Active directory (hosted on AWS Directory Services). However ...
Marko Todoric's user avatar
1 vote
1 answer
386 views

I have a problem with the Linux kernel, regarding the status of ports that are bound through an application, but not used via listen() or connect().  E.g., Entering the following lines in a python ...
ftasnetamot's user avatar
0 votes
1 answer
139 views

I'm trying to test following envirorment: One server (it's a router, It has busybox and few other cmd) with a a physical serial port and and open socket #tcpsvd -v 0.0.0.0 -p 999 cat /dev/ttyS0 ...
Carmine Esposito's user avatar
0 votes
1 answer
452 views

I have been running an Apache web server for numerous years and have been using ports as a medium to serve requests. Recently, I began using Unix sockets to serve MySQL requests. The function of Unix ...
user10709800's user avatar
2 votes
1 answer
153 views

I am running Ubuntu server 22.04, and have a peculiar port forwarding issue with a local machine. This machine has two Ethernet interfaces and the connected enp1s0 interface has an IP address 192.168....
julumme's user avatar
  • 165
2 votes
1 answer
245 views

The original file context for /run/unicorn.sock is tcontext=system_u:object_r:var_run_t:s0 How do I have the file context automatically be system_u:object_r:httpd_var_run_t:s0 when I start the socket ...
siralbert's user avatar
  • 125
1 vote
0 answers
525 views

I couldn't find any specific guides for creating a unix socket in Red Hat Enterprise Linux (RHEL version 9.3) so I used this guide. After creating the gunicorn.socket and gunicorn.service file in /...
siralbert's user avatar
  • 125
0 votes
1 answer
84 views

This code example is given in the book "CPython Internals". from queue import Queue import socket import time timeout = 1.0 def check_port(host: str, port: int, results: Queue): sock = ...
maskalev's user avatar
  • 215
2 votes
1 answer
2k views

I am working on an embedded system device which basically has root user. I have a systemd service call.service which works fine with root access. The service basically creates a few sockets and then ...
gst's user avatar
  • 171
0 votes
0 answers
373 views

I'm not a Unix expert and I'm having a problem with a WebApp running on Azure on an Ubuntu server (20.04.5 LTS), gunicorn.service doesn't create the MyProjet.sock file. Specific, the WebApp has always ...
rusher83's user avatar
0 votes
1 answer
196 views

My distro is MX Linux (Debian) GCC was already installed with distro. I am trying to compile some open source code from Nir Lictman. His Minimalist C web server code compiles in his YouTube video. ...
xstack's user avatar
  • 105
0 votes
1 answer
179 views

I use the contromaster option with my SSH command, like so: ssh -i id_rsa -o ControlMaster=auto -o ControlPath='~/.ssh/controlmasters/%r@%h' -o ControlPersist=3600 user@hostname This allows me to ...
s_dav's user avatar
  • 13
0 votes
0 answers
316 views

This is the situation: I have two VM (virtual machines) via kvm-qemu connected via virtual-serial (a socket). I created the two vm's with this serial configuration: serial1 (slackware, uses port1 ...
elbarna's user avatar
  • 14.5k
0 votes
1 answer
385 views

strace ... -e sendto shows a successful (i.e. positive return value) outcome of trying to send a UDP datagram somewhere, but tcpdump -i any in that network namespace does not show anything relevant in ...
Vi.'s user avatar
  • 6,005
4 votes
4 answers
2k views

I wrote a simple Perl server that listens on a TCP port/socket, accepting connections. Now I wonder: When wanting to implement address-based access control, is it possible to check the address of the ...
U. Windl's user avatar
  • 1,777
0 votes
1 answer
631 views

I'm encountering an issue in my server code where calling accept() on the listening socket will occasionally block, even though select() marked it readable. My understanding is that this isn't a case ...
justin's user avatar
  • 3
0 votes
1 answer
2k views

I am trying to pass an x11 socket to a docker container as a volume so that it's applications can display on my screen. I am unsure of how to do this seeing as I am on wayland and I, a. do not know ...
Kaympe20's user avatar
3 votes
2 answers
3k views

So I have an application that only binds to 0.0.0.0 and listens on a port (TCP). The communication is unencrypted and unauthorized so I'd like to work around that without getting too deep into the ...
WesAtWork's user avatar
  • 153
2 votes
0 answers
145 views

I have a time-sensitive networking application I am writing that involves receiving individual Ethernet frames, and then sending the data onward in another Ethernet frame after a precise 1 second ...
AJMansfield's user avatar
1 vote
2 answers
399 views

After I made regular update of system and apllication, docker (and docker-compose plugin) doesn't work: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker....
petrstepanek99's user avatar
0 votes
1 answer
148 views

I am trying to learn about socket programming, and I have the following function to set up a socket: 29 int CreatePassiveSock(char *protocol, char *portstr, int qlen) { 30 ...
Anthony De Vellis's user avatar
0 votes
1 answer
1k views

whenever I write data to a tcp socket, it waits until its filled with enough data ex: 64k (max packet size) then it sends data to the wire. this misses the data at the right time for the other end. ...
user3840019's user avatar
0 votes
1 answer
98 views

I am using tmux to create a shared session in /tmp called tekkit. All works fine, with one major exception. When the tmux session is closed, the /tmp/tekkit socket file remains in place. This is a big ...
Kuba0040's user avatar
1 vote
1 answer
649 views

I want to extract the signer from an S/MIME file inside a node app. I use (child_process.spawn(), which runs this command openssl smime -verify -CAfile c_root.pem -inform DER -signer /proc/self/fd/1 ...
eri's user avatar
  • 915
0 votes
0 answers
218 views

I am working on an embedded Linux system (kernel 5.10.24), there is a WLAN interface in the system. Now I want to scan the nearby AP, I think I can use socket and SIOCGIWSCAN command to get the AP ...
wangt13's user avatar
  • 651
2 votes
0 answers
144 views

I have the following log messages from auditd. They appear to log calls to socket. type=SYSCALL msg=audit(05/11/2023 23:19:52.913:2533) : arch=x86_64 syscall=socket success=yes exit=9 a0=inet a1=...
Joel Olsteen's user avatar
0 votes
1 answer
1k views

Introduction I am developing a proprietary application that uses libevent with libevhtp to create a server socket for http communication. I wrote a Dockerfile to place this application in a docker ...
Alex's user avatar
  • 304

1
2 3 4 5
9