Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [socket]

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
148 views

Can I make TCP_NODELAY a default setting for all connections on a GNU/Linux system?

This article: It’s always TCP_NODELAY. Every damn time. suggests, as a bottom line, to set TCP_NODELAY by default, always. Can I do that on a (recent) GNU/Linux system... As root, for all sockets ...
einpoklum's user avatar
  • 1,744
2 votes
0 answers
425 views

Cannot connect to a port on Ubuntu 22.04 x64

I have MySQL running on port 1835, as proven by running the command: lsof -i:1835 The following was run to open the port on the firewall: ufw allow 1835/tcp ufw enable ufw reload But the port cannot ...
Andy's user avatar
  • 21
0 votes
0 answers
46 views

Kernel TLS Socket Redirect

Suppose both the client as well as the server are on the same machine and they want to do mTLS. They both choose to offload the TLS to Kernel (kTLS). Now when the key exchange happens, given the ...
ninja.coder's user avatar
0 votes
0 answers
186 views

TCP_NODELAY for All current sockets in linux

i want lowest latency network with tcp_nodelay., in windows OS we can easily enable TCP_NODELAY through registry of windows. i searched on the red hat website and another website but up to now, my ...
Kamala Nivas's user avatar
1 vote
0 answers
158 views

What does it mean when netstat outputs a dash in pid / program name column?

Here is some lightly modified output from netstat (I removed the addresses and names) a@xxxxx:/app# netstat -p Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address ...
zelinka's user avatar
  • 111
-1 votes
1 answer
69 views

How does real server, direct return server (DRS), reply to client if a load balancer (LB) uses port address translation (PAT)?

Direct Return Server overview: The DRS allows real servers to directly reply to a client without going through load balancer (LB). The LB ip (VIP) is configured as a loopback (localhost) ip for the ...
Tom's user avatar
  • 1
0 votes
1 answer
228 views

php-fpm creats only one socket file

I have multiple virtual hosts with unique domain names, users, and root directories for each on Nginx and php8.1-fpm. In the /etc/php/8.1/fpm/pool.d/domain.com.conf contains user = domainuser group = ...
Dev Guy's user avatar
  • 127
0 votes
1 answer
285 views

Python gethostbyaddr being slow

I'm facing an issue today I can't explain and I'm hoping someone will be able to put me in the right direction. I have a fleet of EC2 servers running a python script. When a user connects to my ...
Cyril N.'s user avatar
  • 626
0 votes
1 answer
83 views

Can not ExecStart service python script as root on Linux

OS: Ubuntu 20.04.6 LTS I created a service that executes python script checker.py. The problem is this service does not execute python script with root privileges, although sirjay user has root ...
sirjay's user avatar
  • 97
0 votes
0 answers
405 views

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: ...
m4p85r's user avatar
  • 355
0 votes
0 answers
89 views

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(): ...
user1505698's user avatar
0 votes
2 answers
1k views

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 ...
borog1852's user avatar
-1 votes
1 answer
2k views

ping 100% packet loss - can't ping to server

when I try to ping my newly created server it shows: vasanth@vasanth-client:~$ ping -c 4 server.ip.name PING server.ip.name (server.ip.address ) 56(84) bytes of data. --- server.ip.name ping ...
Vasanth Vel's user avatar
1 vote
0 answers
781 views

clamav-daemon doesn't create /var/run/clamd.ctl

I installed clamav-daemon on Debian 11 and when I try to start it, it doesn't create the LocalSocket /var/run/clamd.ctl. LocalSocket in my /etc/clamav/clamd.conf: LocalSocket /var/run/clamav/clamd....
afriend's user avatar
  • 111
0 votes
1 answer
116 views

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 ...
Музаффар Файзуллин's user avatar
1 vote
1 answer
1k views

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 ...
Matteo's user avatar
  • 111
0 votes
1 answer
152 views

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 ...
ii iml0sto1's user avatar
1 vote
0 answers
892 views

Client Listening on 0.0.0.0 when custom network interface doesn't exist?

I'm facing an issue in our environment where I'm starting a ServerSocket (Java), and configuring it to listen on 0.0.0.0. Then I'm creating a network interface, and my client is attempting to connect ...
Aditya Chandel's user avatar
0 votes
2 answers
3k views

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 ...
best_of_man's user avatar
1 vote
1 answer
2k views

Which machine is actually closing the TCP socket and why?

I'm working on a C# application, handling TCP sockets. I have a server application (Hercules) on the remote machine, trying to keep a socket open. I have my application on my machine, subscribing to ...
Dominique's user avatar
  • 123
1 vote
0 answers
106 views

Reached pm.max_children, High sockets allocated, No CPU usage

The issue I have a server that reaches pm.max_children (200) without spike in CPU usage. No network traffic (MB out / MB in) but extremely high number of socket allocated that do not get closed. CPU: ...
Aidvi's user avatar
  • 46
3 votes
0 answers
246 views

How to tell whether a linux tcp socket had recent activity?

Most of the time, when changing or upgrading a network service, I would do this during maintenance hours but some services are rarely used so it is tempting to just check whether it is currently in ...
Gamification's user avatar
1 vote
0 answers
236 views

How to open communication PYTHON socket with a SERVER SOCKET on AWS EC2 to a CLIENT SOCKET on my local pc?

Sorry my english is not good I want to established connexion from my client socket on my local pc to a host server socket on AWS EC2 instance. I'm trying to follow suggestions from here and code from ...
Citoyen x14's user avatar
1 vote
0 answers
56 views

How are Linux ACLs different for files versus sockets

With umask 0022, using default ACL entries default:user::rwx, default:group::rwx, default:mask::rwx and default:other::rwx for a directory, files created with touch (e.g.) have a mask of rw, and ...
Larry's user avatar
  • 11
1 vote
0 answers
278 views

How to create multiple pools on LEMP Stack, PHP 8.1?

I need to optimize my web app performance, with that in mind I created two PHP-FPM pools for frontend and backend and their respective users. Both pools are listening to different sockets on /etc/php/...
AtomX's user avatar
  • 125
1 vote
1 answer
1k views

Does information piped through a Unix socket touch disk?

I'm trying to understand how fast different IPC mechanisms are, and I know it's possible to create a Unix Socket as a "file" in a directory on a filesystem, but what I don't understand is ...
Christopher Shroba's user avatar
1 vote
0 answers
87 views

Sockets: divergence in behaviors between linux and windows when binding to INADDR_ANY *and* another address with the same port

Say one attempts to bind two sockets respectively on the two addresses "0.0.0.0:12345" and "127.0.0.1:12345". Depending on the platforms I tested this on, the behavior changes. On ...
Fabio A.'s user avatar
  • 111
0 votes
1 answer
954 views

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, ...
Kasey Chakos's user avatar
0 votes
0 answers
603 views

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 ...
rebatoma's user avatar
  • 101
0 votes
1 answer
1k views

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:...
hpy's user avatar
  • 875
0 votes
1 answer
340 views

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's user avatar
  • 1
2 votes
1 answer
1k views

IPTables log connection pid on OUTPUT chain

I'm trying to find pid of a socket using iptables OUTPUT chain log, or even better adding it into the log. My current iptable rule: sudo iptables -A OUTPUT -j LOG --log-prefix='[PID]' --log-level 7 --...
Or Yaacov's user avatar
0 votes
1 answer
205 views

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 ...
EvilZebra's user avatar
  • 103
1 vote
1 answer
2k views

Failed to get properties: Unit name [email protected] is missing the instance name

I've recently upgraded my MariaDB servers from 10.1 to 10.6 and now when I restart services for example wildfly, I get this message : sudo service wildfly restart Failed to get properties: Unit name ...
Ror's user avatar
  • 343
2 votes
1 answer
2k views

How do I create a python 3 service that uses socket with systemd?

I am trying to create a service with systemd, where I use python3 to create a simple socket and leave it as a daemon, but I have made several attempts but in both cases without any success. For today ...
David Moran's user avatar
3 votes
2 answers
1k views

Fail2ban socket permissions reset on reboot

I have some specific group/permissions set for my fail2ban.sock file to make Zabbix able to monitor Fail2ban as described here https://github.com/hermanekt/zabbix-fail2ban-discovery- I added the ...
ihorc's user avatar
  • 53
0 votes
1 answer
779 views

Mysqli access denied , using UNIX socket [duplicate]

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"@"...
Sam's user avatar
  • 25
3 votes
2 answers
26k views

Why am I getting "Connection refused"?

I am running a hello-world http server on an ubuntu EC2 instance, let's say, myurl.com. I am unable to curl it from my client: $ curl myurl.com:4296 curl: (7) Failed to connect to ...
Ruby's user avatar
  • 139
2 votes
1 answer
4k views

Socat - is it possible?

Is there any way to listen and execute a command ( for every connection ) while port forwarding with socat? A non-working example to make it more clear: socat TCP-LISTEN:8080,reuseaddr, "exec:ls&...
hyogy's user avatar
  • 23
0 votes
1 answer
591 views

Not seeing a packet sent from a client to the server in Wireshark

I am new to socket programming and have a couple of questions. For the context, I have a server and client with each having a socket opened: the socket on the server is bounded to INADDR_ANY which ...
Jazzy's user avatar
  • 101
4 votes
0 answers
687 views

How to find out which kernel module opened a socket?

When I try to find the process for an opened socket using e.g. ss I get the following output: ❯ sudo ss -tulpen Failed to open cgroup2 by ID Failed to open cgroup2 by ID Netid State Recv-Q Send-Q ...
sneusse's user avatar
  • 141
1 vote
1 answer
870 views

ssh port forwarding with permament connection between remote and destination

I know you can use ssh to forward a local or remote port to another destination and port. So for example let's say I have this command: ssh -L *:8443:10.0.0.1:443 [email protected] So this allow to open ...
Bemipefe's user avatar
  • 115
3 votes
1 answer
619 views

Start systemd socket on VPN connection automatically after boot

One of my servers is setup so that it will automatically connect to a VPN after booting up using a systemd service. Now I want to host a systemd socket on this VPN connection. And the socket should ...
rollstuhlfahrer's user avatar
0 votes
0 answers
3k views

Curl : Recv failure : Connection Reset By Peer and Unix Socket Crash

I'm trying to set up a unix socket for gunicorn and to ping it from curl (running curl --unix-socket /run/gunicorn.sock http://www.example.com --trace-ascii dump.txt). Unfortunately, the response from ...
NSinha's user avatar
  • 1
-1 votes
1 answer
955 views

Python sockets: TCP errors in linux, while same program works fine on Windows10

I'm trying to communicate with a commercial power supply device via TCP/IP using python sockets. I tried using both a virtual linux(centos8stream) and virtual windows10, both running at the same ...
Cenkoloji's user avatar
1 vote
2 answers
5k views

How to open a socket on EC2 instance?

I want to send webcam video from my laptop to aws EC2 instance. I'm trying to follow suggestions from here and code from here. The issue I'm facing is that I do not know how to open a socket and ...
mirzaD14's user avatar
0 votes
1 answer
873 views

Serving multiple socket using gunicorn and Nginx cause a NotFound error

I am trying to serve two Flask apps using Nginx as a reverse proxy. In my default.conf which I have reloaded using sudo service nginx restart I have got: location /app2loc/ { include ...
G M's user avatar
  • 105
3 votes
1 answer
8k views

How to share unix domain socket between containers without named volume?

I have two containers A and B which needs to talk via unix domain socket created by A in /var/run/notif.sock. I can't use named volume as sharing /var/run between containers is risky as it contains ...
Ankur Sao's user avatar
2 votes
1 answer
5k views

How to change the docker.socket group

I am managing several compute hosts running Ubuntu 18.04 (with systemd) and Docker inside a mostly trusted network. I have an auth server so rather than manually add users to the docker group, so that ...
WiringHarness's user avatar
1 vote
1 answer
3k views

simple systemd service and socket failing

I had a service I was trying to run this way but it was slightly a large python program. I took a step back and built a dead simple python program to see if I can get it to run. It fails when I try ...
Codejoy's user avatar
  • 159

1
2 3 4 5
12