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
1
vote
2 answers
Writing to Unix Domain Socket from rsyslog
I want to write output messages from rsyslog to a Unix Domain Socket. I want to do this so that I can read the messages from that socket using my script and parse log messages further.
I try to use omuxsock but it was not creating any socket.
Is…

shivams
- 469
- 1
- 9
- 15
1
vote
0 answers
Deploying node.js application on Ubuntu VPS
I created an real time android application backed by a node.js application. I use express, socket.io, mongodb and ubuntu for my backend. But my problem is on how I can possibly run it in production or over the web alone without me running this node…

Port 8080
- 123
- 1
- 4
1
vote
2 answers
Send Text String to a Socket In Windows
I have a server that has an open socket that listens for a particular text string on it in order to perform an action.
Our linux machines send this data via:
echo "text_string" | nc -w 2 server-name port#
Is this possible on Windows (possibly in…

cheesesticksricepuck
- 467
- 1
- 5
- 17
1
vote
2 answers
When a socket switch to TIME_WAIT state, why I can't see its inode number?
I'm developing a program in python that parses /proc/net/tcp informations, but unfortunately, while I was doing this, I saw a strange thing.
Practically, when a socket change in TIME_WAIT state, losses its inode number, and I don't know who is the…

LordFire
- 13
- 4
1
vote
1 answer
Rails application deployment, nginx, unicorn, capistrano socket error
I am deploying a rails application to a digital ocean VPS. I have followed https://coderwall.com/p/yz8cha . All things done well, but now the browser shows only a blank page.
Nginx log contains:
2014/08/04 03:07:20 [crit] 20550#0: *4 connect() to…

navinspm
- 11
- 5
1
vote
1 answer
Updated php5-fpm, can't use socket anymore
Earlier today, I updated packages on one of my servers. One of those packages was an update to php5-fpm, which seems to have broken my ability to utilize unix:/var/run/php5-fpm.sock.
Disclaimer: I only recently started using Linux; I don't fully…
user228321
1
vote
0 answers
Weird socket behavior in VirtualBox (NAT + PAT)?
I have a Linux VM with NAT and PAT configured. Let's say ports 2000 and 2001 are forwarded to the VM. These ports are also configured for external access on a device such as a router using a domain name such as mydomain.com. The following command…

xikkub
- 149
- 1
- 9
1
vote
1 answer
Increase number of connections per socket
How do I increase the number of connections each socket can accept?
I know that you can increase the total number of connections using:
# sysctl kern.ipc.somaxconn=4096
But each connection is then still limited to 128.
How do I increase the total…

cheesesticksricepuck
- 467
- 1
- 5
- 17
1
vote
2 answers
Communicating between two servers sitting behind their respective NATs
I'm building an web app (Server A) that communicates with a remote server (Server B) that is connected to the internet.
Server B resides behind a NAT and is listening to communication on 3 non-standard ports.
In a typical scenario, in order for me…

David C
- 123
- 6
1
vote
1 answer
Debian 7.4 drops UDP traffic randomly
I'm running Debian 7.4, KVM VPS with the latest updates. I'm getting UDP ports randomly closed for 2-10 minutes for no reason. I'm running gaming servers and the port tester shows the ports are closed. It restores to the normal state itself. All the…

Gallardo994
- 35
- 6
1
vote
1 answer
WebSocket Connection closed before receiving a handshake response
Due to WebSocket connections I am facing issue and due to this other response to stop receiving.
I have configured BIMServer to response back to my application and render 3D view loading individual component on viewer(pop-up window).
I am receiving…

Vimal Panchal
- 113
- 1
- 1
- 4
1
vote
1 answer
Servicing ws:// in Node.js via Tomcat and Apache
I've Googled various combinations of keywords but I cannot find a suitable description of what to do to get this to work. Currently, I have a web site running Apache 2 with everything except ports 80 and 443 blocked. I've set up Tomcat to route…

Ken Y-N
- 111
- 6
1
vote
3 answers
Uwsgi and flask with unix socket instead of URL
I was trying to find out the difference between a socket as a unix file and a socket that is a ip and port.
If I switch something like uwsgi to use a file instead of a port and ip, how do I then access uwsgi as a URL in my browser, since no port is…

J.Zil
- 1,123
- 3
- 21
- 29
1
vote
1 answer
Use stunnel for Socket.io SSL support
I am trying to add SSL support to my node.js app, while connecting via socket.io. The traffic to socket.io is going to port 80. I would like stunnel to grab encrypted traffic from port 443, unencrypt it, and forward it to post 80.
I have…

Kuf
- 449
- 2
- 8
- 25
1
vote
1 answer
F5 Big-IP and WSS WebSockets
We have a F5 Big-IP load balancer that handles the SSL, so the servers behind it get HTTPS rather than HTTP (SSL off loading). I don't have version handy, but in the login page I can see "Copyright 1996-2010", so I guess it is not latest version…

NullOrEmpty
- 389
- 2
- 5
- 16