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
3
votes
2 answers
.NET 2.0: An established connection was aborted by the software in your host machine
Scenario:
I try to post a video to YouTube with the following code:
YouTubeEntry createdEntry = service.Upload(newEntry);
This works fine on my developer machine (running Windows XP).
It fails on a Win2k server (running .NET 2.0) with the following…

Jim G.
- 338
- 2
- 6
- 15
3
votes
2 answers
How to get a service to listen on port 80 on Windows Server 2003
I've coded a custom windows service that listens on TCP port 80 but when I try to install it on a Windows Server 2003 machine it fails to start because some other service is already listening on that port. So far I've disabled the IIS Admin service…

Miky Dinescu
- 294
- 2
- 5
- 12
3
votes
0 answers
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 use and if not, take it down for a minute or…

Gamification
- 131
- 4
3
votes
2 answers
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 myurl.com port 4296: Connection refused
When I…

Ruby
- 139
- 1
- 1
- 3
3
votes
2 answers
What is the maximum number of socket connections on Linux?
How do I know the maximum number of connections allowed to my Ubuntu server?

par
- 1,263
- 3
- 12
- 15
3
votes
0 answers
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 Local Address:Port Peer Address:Port…

sneusse
- 131
- 2
2
votes
1 answer
How do I "watch" a unix socket to see what requests are coming through?
My nginx is forwarding its incoming http web requests to a local unix socket (unix:/var/run/foo.sock). On the other end I have a separate web server (puma + ruby on rails, if it matters) reading from that websocket.
For debugging purposes, is there…

user2490003
- 147
- 5
2
votes
1 answer
gpsd.socket for chrony does not work
I tried to get more accurate time from gps data using ublox module and centos but it seems gpsd.sock does not work properly to get the data to chrony.
am I missing somthing ?
[root@info /]# cat /etc/chrony.conf
# Use public servers from the…

Bell-guest
- 21
- 1
- 2
2
votes
3 answers
Installing the Data Plane API in the HAProxy Process Manager
I'm trying to start the Data Plane API on HAProxy boot using the instructions detailed here: https://www.haproxy.com/documentation/hapee/1-9r1/configuration/dataplaneapi/#using-the-haproxy-process-manager
My issue is I get this:
$ curl -X GET --user…

nowthatsamatt
- 921
- 1
- 8
- 11
2
votes
0 answers
PHP-FPM doesn't create the socket when run as non root user
I am creating a Docker image that run NginX and PHP-FPM (with Supervisor). The container is run as www-data, but the PHP-FPM socket is not created.
Here are my config files :
www.conf
[www]
listen = /var/run/php/php7.3-fpm.sock
listen.owner =…

M4kn4sh
- 121
- 1
- 4
2
votes
1 answer
How do I change permissions on a ssh forwarded unix domain socket
consider the ssh command:
sudo ssh -L /my/local/sock:/var/remote_socket me@remote
This runs as root, so the created local unix domain socket has ownership root and 0600 permissions.
How do I tell ssh to create the socket with wider permissions?

Keeely
- 123
- 6
2
votes
1 answer
Apache and PHP-FPM security with mod_proxy_fcgi
I use PHP-FPM in a shared hosting configuration. Each FPM pool runs as a different user. Apache runs as www-data. Apache connects via a socket using mod_proxy_fcgi. I allow users to use .htaccess files.
How do I prevent a user from connecting to the…

Sander Marechal
- 289
- 4
- 11
2
votes
1 answer
How does UDP sockets know which source address to respond to?
I have understood that UDP sockets are fully identified by destination IP and destination port. The IPs are in the IP datagram´s header yes, but when the datagram arrive at its destination, only the payload is sent to the upper-layer protocol.
If…

Ramriez
- 21
- 1
- 2
2
votes
0 answers
What to set uwsgi uid and gid to?
I'm trying to have nginx connect to a uwsgi socket on FreeBSD. I've set the socket to 666 but whenever I issue a request in my browser I can see the following in my nginx logs:
2017/12/12 11:34:04 [crit] 1051#100213: *5 connect() to…

ruipacheco
- 133
- 1
- 8
2
votes
1 answer
Speed up mongodump+mongorestore
I have created a script to copy a MongoDB database to my machine. I am creating an SSH tunnel (ssh -L ...) then I connect to the tunnelled port with mongodump then I pipe its output to mongorestore:
mongodump --host=127.0.0.1:##### --db=*****…

warvariuc
- 358
- 1
- 5
- 14