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.

learn more… | top users | synonyms

1
vote
0answers
40 views

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 ...
0
votes
0answers
2 views

Can't connect to socket listening on 127.0.0.1 but works for 'localhost' [migrated]

I have a clean install of Windows 10 Pro x64 and I'm trying to run postgresql server on it. It used to work perfectly on Windows 7, but Win10 is behaving really weird: if I configure postgres to ...
-4
votes
1answer
19 views

Why is the same socket in TIME_WAIT many times?

I have read other threads regarding sockets in TIME_WAIT, but I am clearly still missing something. Below is a few lines from a "netstat -an". How could it get into this situation? If I understood ...
2
votes
0answers
23 views

SSL - Apache and Node.js on the same Amazon EC2 instance

I hosted my website on an EC2 instance, using Apache. SSL was also set up properly, running on HTTPS, port 443. Currently, I just added a chat application to the website using Node.js + socket.io. ...
-1
votes
1answer
27 views

Is “keeping alive connections” the smartest approach to access devices behind a router? [closed]

The problem I'm developing an IOT device that will connect to a common Wifi router. As you know in order to make this device publicly accessible from WAN you'll have to do some ports forwarding or ...
0
votes
0answers
3 views

How to free a port on OS X when lsof(1) reports that it is not in use [migrated]

I am a developer working in OS X on Eclipse. A bug I have been working to fix in a web application results in some very strange behavior when resetting an instance of Tomcat, resulting in the ...
1
vote
1answer
27 views

Dest host dont accept UDP when there is no route to source

I have three hosts with following config: Host A: IP:192.168.1.1/24 Host B: IP:192.168.1.2/24 Host C: IP:192.168.3.1/24 Everything happens on CentOS 6, and all interfaces are VLAN tagged (if it ...
0
votes
1answer
28 views

Where to create an AF_LOCAL/AF_UNIX socket file when not allowed to write in /var/run?

FSH says that socket and pid files should go to /var/run However, for security purpose, only root can creates file and subdirectories in this location. A common solution is creating a subdirectory ...
0
votes
1answer
33 views

Will internal API calls be treated as DDOS attacks by AWS?

I have a nodejs development server. I am currently running on an AWS EC2 micro AMI. I have a hardware device which continuously submits data to this server via socket. The server then calls an API, ...
0
votes
1answer
27 views

Keep connections of closed instances behind a load balancer

I'm looking for a system to create a live sockets application through sockets.io and that can be balanced without problem. There are tons of solutions to balance the load between multiple socket ...
-2
votes
1answer
34 views

IP address differences between two computers on the same local network [closed]

Why does the python command print(socket.gethostbyname(socket.gethostname())) give: 192.168.1.4 on my laptop 127.0.1.1 on my Raspberry PI when they're both on the same local network, and the PI's IP ...
0
votes
1answer
42 views

127/8 address is not passed to IP stack?

I send IP/UDP frames using raw sockets with destination IP address from 127/8 range - e.g. 127.0.0.6. So, packets are sent over the network OK (checked using tcpdump on the target device). But on ...
0
votes
0answers
12 views

Route only on output chain?

I have two machines A and B. I want to send iperf traffic from A to B, but first have it route through a userspace program on A. I did this with a tunneling device: therefore, I used the command ip ...
0
votes
0answers
32 views

SYN/ACK not received by iperf client?

I have an application that essentially consists of four components A, B, C, D. A and B are on the same machine - B and C are separate machines. Traffic is generated by an iperf client on A with a ...
2
votes
1answer
158 views

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 ...
0
votes
1answer
68 views

icinga2 mysql connection issue

I followed all the install wizards When setting up icinga2, I have the following error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13) ...
0
votes
2answers
93 views

Redirect subdomains to services on different ports of same server

I have a VPS which has 1 IP. If I run two socket servers, one on port 8080 and the other on port 8081, is there a way I can map service1.mydomain.com to the socket server on port 8080 and ...
0
votes
1answer
470 views

dnsmasq: failed to create listening socket for port 53: Address already in use

I got this error when i done the setup dnsmasq. ashokkrishna@krishna:~$ sudo dnsmasq dnsmasq: failed to create listening socket for port 53: Address already in use ashokkrishna@krishna:~$ netstat ...
0
votes
0answers
31 views

FTP Server error, A receive socket error occurred

I have a FTP server, Core FTP server, where i get errors for inbound transfers to one of the accounts. The inbound files are only 1k in size. The error occures in 5% of all inbound transfers. Error ...
0
votes
1answer
51 views

How to use non-deprecated tools like ss to get process id running on a port?

I am looking for a non-deprecated way of running a command like netstat -tulpn | grep 8000 to output information about an active port. Any suggestions on how to use a tool like ss to get the process ...
0
votes
0answers
20 views

What are the minimum permissions for a libpam-ldap unix domain socket?

I'm setting up an LDAP server and libpam-ldap to run on the same host, communicating via a UNIX domain socket. I'd like to give this socket the minimum permissions necessary, so random local users ...
0
votes
2answers
490 views

HAProxy max session limit

I have an Amazon OpsWorks stack running HAProxy (balance = source) and several node.js instances running socket.io. It seems HAProxy determines the max session limit for a given instance based on the ...
0
votes
0answers
68 views

wsgi nginx error: permission denied while connecting to upstream

There seem to be a few questions on stackoverflow and serverfault about this but unfortunately nothing has worked for me. I'm getting a 502 bad gateway on nginx, and the following on the logs: ...
0
votes
0answers
66 views

Socket Error 10054 - VS2013 Web Deploy Failing

I'm having trouble completing a web deploy from VS2013 as I posted in VS 2013 Web Deploy failure: Warning : Retrying the sync because a socket error (10054) occurred Apparently web deploy uses port ...
3
votes
1answer
311 views

Nmap external scan shows port open, ASA says port is not open, but do get an socket

Folks, have a weird one, need your expert help. For one of our heavily used external facing server which came up in an audit, nmap -Pn scan shows the following: Starting Nmap 5.51 ... Host ...
1
vote
2answers
137 views

nginx - why i can't use variables in proxy_pass path?

Why i can't use variable $user in proxy_pass - like in example below? server { listen 80; server_name ~^(?P<user>[a-z|A-Z|0-9|_|-]+)\.example\.net$; root /home/$user/webapps/; ...
2
votes
1answer
953 views

Siege: descriptor table full sock.c:119: Too many open files

I am trying to make a stress test in my own server using siege with the following command: $ siege -c 500 myweb.com/somefile.php But I get this error: [error] descriptor table full sock.c:119: Too ...
1
vote
0answers
98 views

After sending Duplicate ack by the server, it stop responding [closed]

My TCP client communicates with multiple 3rd TCP servers. However one particular server produces duplicate ack and stop responding in the specific time only. That particular server is OK other time. I ...
0
votes
1answer
2k views

node.js, socket.io only working on localhost, can't access from intranet

I am using node.js and socket.io for the real time notification system. I have tested node.js and socket.io with simple chat code, it pretty good with localhost but can't access the same from the ...
0
votes
2answers
756 views

How to let PHP connect to database by using UNIX socket (Joomla)

I'd like to have my PHP applications such as Joomla make use of the UNIX socket to connect to the local mysql database. I've already configured the php.ini with: mysqli.default_socket = ...
0
votes
0answers
52 views

How to work whit socket_file httpd (nginx-uwsgi)

I am trying to run Nginx/uWSGI/Django, the last remaining step is to run the socket_file all I get is a 502 Bad Gateway. Route my django application. #/home/deploy/webapps/myapp Configuration ...
4
votes
0answers
559 views

WebRTC on standalone asterisk - no audio

After struggling with Asterisk for WebRTC for a few weeks now, I decided to put my problem on this forum. My Problem is as follows: Im not getting audio from WebRTC to WebRTC clients. I work in a LAN ...
0
votes
1answer
274 views

Can't boot Mysql on Centos 7

I've installed mysql on Centos 7 (mysql-community-server) as root. The problem is that I can't start the daemon with "service mysqld start", It never return me to prompt and even if I try to use ...
0
votes
0answers
131 views

Yet another “Can't connect to local MySQL server through socket” after a security update

SOLVED As yoonix pointed out, it was only an issue with the root partition being full... Thanks for your help! - So yes, this question has been asked several times, here and elsewhere. I apologize ...
0
votes
1answer
164 views

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 ...
1
vote
0answers
281 views

Performance issues with Apache + Django + socket.io (long-polling) + Proxy

I'm trying to set up a website with django, apache and socket.io. Thanks to some tutorials and other stackoverflow questions, I managed to make everything work, except for a severe lag, that occurs ...
2
votes
2answers
122 views

Limit to number of listening ports in linux

I have tried to launch a script to listen to thousands of tcp ports (1000 to 10000) but it appears to be hitting a limit of 1024 listening ports. I've confirmed this via netstat and closed ports above ...
0
votes
0answers
143 views

Nginx websocket proxy incorrect response

I was trying to set up nginx as a proxy to my server (Goliath) which happens to be serving both regular and websocket connections. This is my setup: upstream goliath { server localhost:9696 ...
0
votes
1answer
44 views

same port opened - one on the asterisk (*) address and one on localhost

running on Mac with two jetty instances i've arrived to this peculiar situation: ~$ lsof -ni :9905 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 40320 ******* 394u ...
2
votes
1answer
73 views

php-fpm: What is the bottleneck for accepting connections faster?

On a php5-fpm status page, what is the bottleneck that is preventing my server from accept()'ing new sockets fast enough? pool: www process manager: static start time: ...
0
votes
0answers
164 views

Client can't connect the server using Web Socket Protocol

I have a WebSocket WCF based server. a web (HTML) client is connecting this server using WebSockets. The server worked well with all clients, till we stumble a client, Chrome (And Firefox) running on ...
-2
votes
1answer
32 views

Is it possible to bind a socket with NIC Queue?

when i open a new socket linex system automatically bind it to a NIC queu. Currently i have two sockets and i want to bind them to two different NIC queues. My question is 1)Is it possible to bind ...
0
votes
1answer
68 views

nginx handle multiple locations for one server

I need to setup a virtual host to run my users.example.com website. It needs PHP support via php-fpm. The ideia is to have a mapping like this: users.example.com/~user1/folder/file.php -> ...
2
votes
2answers
468 views

Postfix & Amavis - Use UNIX Soket for Communication

I currently using a complex mailserver setup using Postfix, Dovecot, Amavis and Spamassassin. Everything works fine but I want to improve the Postfix-Amavis-Communication. At the moment, postfix will ...
2
votes
1answer
660 views

SELinux: no audit errors but nginx permission errors

I try to isolate a SELinux problem with nging/munin. I see that error message in "/var/log/nging/error.log": [crit] 8802#0: *55 connect() to unix:/var/run/munin/fcgi-html.sock failed (13: ...
0
votes
1answer
398 views

apache mod proxy_wstunnel invalid utf8 during websocket upgrade

I am experiencing an intermittent problem when connecting the jetty web-socket client to the server. The good people at Jetty assure me it is not a problem with Jetty. On the server side I have ...
3
votes
2answers
201 views

source address with iptables port forwarding

I set up port forwarding for port 80 with iptables: iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 10080 Additionally, I have ip forwarding enabled to route connections ...
2
votes
0answers
229 views

How to deploying Node.JS without interrupting service? [closed]

There are some blog posts and questions written about this, but they are mostly from 2010 or 2011, and I was hoping for a more up-to-date (2014 era) answer. I have a pretty standard Node.JS ...
0
votes
0answers
128 views

How do I know the remaining buffer space?

There is a socket error 10055, meaning "No buffer space available". But what is this buffer space and how do I know, how much of it is still available? At the time I've got this error, the server had ...
0
votes
1answer
606 views

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 ...