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
4
votes
3 answers
How to get sockets which are listening on a specific port in linux?
An application may be binding multiple sockets to a specific port,how can I get those sockets command line?

kernel
- 8,561
- 6
- 20
- 14
4
votes
2 answers
Differences between UNIX Domain Sockets and Internet Sockets
I think the differences are
You connect to the server by providing the file path instead of the destination IP/port
There is no such thing as a source port.. Also, the source IP would only be localhost.
I think that each open UNIX Domain socket…

700 Software
- 2,233
- 10
- 49
- 77
4
votes
2 answers
Are serial-to-ethernet adapters interchangeable?
I need to get data from a serial device (a weather station) over our network where it'll be processed by a Unix host (using custom software). I was able to compile remserial which makes the remote serial device act like a tty. Remserial was…

Clinton Blackmore
- 3,520
- 6
- 36
- 61
3
votes
2 answers
how does an OS route messages sent to the same port to different sockets?
This is something I've never quite understood: A service offered by a server can be uniquely identified by its IP address and port, for example 1.2.3.4:22, but multiple clients might connect to the same port at the same time. When the different…

Stephen
- 134
- 7
3
votes
2 answers
What address should the client connect the socket to
SOLVED
SOLUTION: I tried the connection with a little server program and it works perfectly fine. I could connected it to 10.195.5.53. My problem is within the software of my client program it has not compiled correctly.
I have a server in UNIX…

Pepe Moreno
- 31
- 3
3
votes
1 answer
Nginx keepalive when using a UNIX socket
Is there any benefit or performance gain when using keepalive on an upstream that is using a UNIX socket as a server, for example:
upstream test {
server unix:/tmp/test.sock;
keepalive 60;
}
server {
listen 80 default_server;
listen…

nbari
- 558
- 1
- 9
- 28
3
votes
1 answer
Error when SSH forwarding TCP to unix socket
I am trying to use ssh to forward a TCP connection on a local port to a Unix socket on a remote server, but I keep getting errors.
I started by having nc listen on the remote server:
remote$ nc -lU /tmp/socket
Then I set up a portforward using…

George V. Williams
- 131
- 1
- 5
3
votes
2 answers
Should I worry about hanging sockets when setting keep-alive timeout to Infinity?
Some initial context to this question. Currently I have a application cluster deployed behind a ALB which maintains persistent keep alive connections with the application. This application is under continuous heavy load and must have very high…

andrsnn
- 165
- 6
3
votes
1 answer
System network buffers leaking/fully used, on Windows x64 with plenty of free RAM. How to diagnose and resolve?
This is related to this question and extends it.
The symptoms are the same - 2012R2 x64 with 64GB RAM (21GB used), ping and nslookup both work fine, but IE won't open web pages, net use X: \\share returns an error 1450 "Insufficient system resources…

Stilez
- 714
- 7
- 15
3
votes
2 answers
How to find the other point of a Unix domain socket on Mac OS X to write/read it?
I listed open file for a process (a daemon) on my box which runs Mac OS X 10.5 :
>lsof -p 89
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
...
xxxxx 89 xxxxxxxx 9u unix 0x34f8990 0t0 ->0x34f8880
I 'd like…

yves Baumes
- 268
- 4
- 9
3
votes
0 answers
Firewall : Is inbound required for getting response while Outbound rule already there?
I developed one MVC web application which have Web APIs and hosted in Amazon Instance and one windows application for calling those APIs for getting response from that server.
Both Web and Windows applications are developed in asp.net framework 4.5…

Abhishek Parmar
- 31
- 1
3
votes
0 answers
Docker: Nginx and hhvm socket configuration returns 502 Bad Gateway
I am trying to run nginx and hhvm with docker-compose and socket file configuration but it returns a 502 error. I can access to conf/hhvm/run/ from nginx and hhvm image.
In the error.log nginx's file I got:
[error] 5#5: *3 connect() to…

Avel
- 31
- 1
- 4
3
votes
1 answer
Can't touch/connect to a unix socket from the same group
sudo ls -la /var/lib/redis/6379/ produces:
drwxrwxr-x 2 redis redis 4096 Nov 28 23:10 .
drwx-w---- 3 redis redis 4096 Nov 22 00:10 ..
srwxrwx--- 1 redis redis 0 Nov 28 23:10 redis.sock
Great, now sudo groups www-data produces:
www-data…

Cenoc
- 217
- 1
- 12
3
votes
0 answers
Can't connect to (or write to) a socket file, despite being owner?
I am working on Debian Jessie with Django 1.8, trying to set up Gunicorn to run my Django site. I have made a user called opuser, and made this user the owner of the gunicorn.sock file and of the containing directory:
$ ls -lash…

Richard
- 263
- 2
- 5
- 11
3
votes
2 answers
sudo: unable to create sockets: Cannot allocate memory
On a VPS run by OVH (apparently OpenVZ-based, given /proc/user_beancounters exists), with relatively few processes running, trying to sudo gives me the error in the title.
Here is a sample transcript:
ekleog@ekleog:~$ sudo echo a
[sudo] password for…

Ekleog
- 133
- 1
- 5