A socket is an abstract network construct with a sending and receiving side. In most modern operating systems (OS) there are device representations, and programming tools to address sockets.
Questions tagged [socket]
564 questions
0
votes
2 answers
Is there a Windows app out there that can pipe command line arguments into a TCP socket connection?
I haven't needed anything like this before but I'm sure something exists. I'm looking for a compiled Windows executable (i.e. noninterpreted language) that I don't need to write that can read the arguments passed in on the command line, open an TCP…

Oesor
- 300
- 1
- 2
- 16
0
votes
0 answers
Portainer can't access docker socket without chmod 666 workaround
Environment: Alpine Linux (3.18)
I've got a portainer docker container that can't access the docker socket. I've added my user to the docker group. I make the container with the following command:
docker run -d --restart always -p 9001:9000 -v…

m4p85r
- 315
- 2
- 7
0
votes
0 answers
AppArmor rule to allow QEMU to create a char device socket in a directory
Given the following command line for QEMU (from this page):
qemu-system-x86_64 -machine accel=kvm -cpu host \
-m $mem -object memory-backend-file,id=mem,size=$mem,mem-path=/dev/hugepages,share=on \
-mem-prealloc -numa node,memdev=mem…

Ken Y-N
- 111
- 6
0
votes
0 answers
PHP Error waiting on socket
I'm getting problems with ssh2 and fread php function that started on a few days.
On the apache error log show:
ssh2_connect(): Error starting up SSH connection(-9): Error waiting on socket
fread(): Failure 'Error waiting on socket' (-9)
I'm…

user1505698
- 11
- 2
0
votes
1 answer
Fork connections out from a single socat connection
I have an old legacy application I’m trying to get to work with our semi-modern network. This application sends log messages as HTTP requests (one log per request) but does so over a single TCP connection. If that TCP connection dies, the logs get…

borog1852
- 1
- 1
0
votes
1 answer
How to track file lifetime using lsof?
I have read article https://tailscale.com/blog/case-of-spiky-file-descriptors/ where author investigates anomalies with the amount of open file descriptors.
He said that made snapshot of open files using lsof which allowed him to track lifetime of…
0
votes
1 answer
Start Apache on-demand using systemd socket activation
I have a local website on Debian 11 which is rarely used so I thought I might want to start Apache using systemd socket activation when visiting the site and then shut down after few minutes of inactivity.
After installing apache on debian I stop…

Matteo
- 101
0
votes
1 answer
How do I setup a SSL certificate for an express.js server behind a load balancer?
I'm restructuring my server structure by splitting them up instead of running everything from one server.
I looked here but that just specifies what I were already doing in the original setup with just 1 server.
I'm having a structure like this:
2x…

ii iml0sto1
- 101
- 2
0
votes
2 answers
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
EDIT: The following describes my original question, but as long as I haven't resolved the issue yet, I thought maybe I should change settings inside the created mysql POD instead of mysql config files on my local computer. But when I try to do any…

best_of_man
- 367
- 1
- 3
- 12
0
votes
1 answer
kubernetes pod with a socket connection not firing 'close' event
I have a Kubernetes deployment where a pod connects to a client via TCP Socket. On connect and disconnect different events happen. In the dev environment the server can respond to connections, data, and end, but in the production environment it only…

Kasey Chakos
- 1
- 2
0
votes
0 answers
configure inactivity timeout while handling keepalive probes
I am developing a TCP echo server using python and the socket library.
I'd like to have a timeout configured for each incoming connection. So to drop and close them if there is inactivity for a SOCK_TIMEOUT value.
This is achieve with the specific…

rebatoma
- 101
- 2
0
votes
1 answer
Ansible - No such file error when activating systemctl Podman user socket
I am running an Ansible playbook on a fresh Oracle Linux 8 system. It includes a step where it asks systemctl to activate a user Podman socket like so:
- name: Enable podman socket
vars:
userid: ansible_facts.getent_passwd.{{ ansible_user_id…

hpy
- 845
- 3
- 18
- 28
0
votes
1 answer
Hosting a Python sockets server on the web
I made a simple chat app for my friends and I to use, but I don't want to host the server on my computer, I want to host it on the web. Does anyone know any good services or tutorials on doing this?

JKru
- 1
0
votes
1 answer
PHP socket connection through XR300 router to a receipt printer
I have a PHP application which is attempting to open a socket connection to a printer through my router.
A couple things to note - my networking skills are lacking so I may be missing something obvious or this may not even be possible in the way I…

EvilZebra
- 103
- 4
0
votes
1 answer
Mysqli access denied , using UNIX socket
I am trying to learn PHP, and I am setting up the database connection.
On Mysql Workbench, I created a database called php, and created a table.
Then I created the account "sam"@"localhost",(I am using Ubuntu desktop, and sam is the output of whoami…

Sam
- 25
- 1
- 10