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

Troubleshooting for TCP exchange between an embedded Linux dist (OpenWRT) and a Fedora dist on a computer

I am facing an issue I did not succeed to solve. I have a device (Arduino Yun) using the OpenWRT distribution, on which I run a nodeJS machine to execute some function, and especially to send tcp ...
0
votes
2answers
61 views

MySQL Daemon Lock issue

Last night, my MySQL server went down unexpectedly. On attempting to restart (with service mysql restart - I'm root) it merely hangs. With the mysql -u root -p command, I get ERROR 2002 (HY000): Can't ...
0
votes
1answer
44 views

OpenVPN and nginx port sharing : Adress already in use

I have an instance of nginx running on ports 80 and 443, and I would like to use openvpn with the port 443 in sharing. So in my server.conf I have this port 443 port-share 127.0.0.1 4433 proto tcp ...
0
votes
1answer
24 views

Simpliest unix non-blocking “broadcast” socket

I have non-regularly running program which outputs string, I need to send this output to some kind of socket which can be distributed out of docker container and which can be listened by multiple ...
0
votes
1answer
20 views

kill tcp port binding by deleting proc/[0-9]/net/… in linux

I have a script to call syscall Kill the process that holds a certain TCP port in Linux (ubuntu). But even if I do that, sometimes the port still remains in /proc/[0-9]/net directory binding the port. ...
0
votes
1answer
67 views

Socket IO combined with apache ssl server

I'm trying to run a NodeJS server on port 8000 along with my Apache server which has a ssl certificate. I'm using virtual hosts and proxypass to link from my apache website through the /node path to ...
0
votes
0answers
156 views

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

Cntlm error: too many open files

As the title says i have got some issues with Cntlm. I'm working with the 0.92.3 version and launched from the source code. What i am trying to do is starting Cntlm as a standalone proxy with ...
0
votes
1answer
15 views

How to start postgresql server with the socket at a different place?

Good morning. The title says it, but let me precise it. I am working with openbsd. The web server is chrooted in /var/www. So the good thing would be that postgresgl place its socket (and the lock, I ...
0
votes
1answer
24 views

Connection refused on RHEL localhost with running server

I'm running a Java based system on CentOs and I sometimes see that clients of a service experience "Connection refused" errors for short periods. The interesting is that the server is, at the same ...
1
vote
0answers
76 views

uWSGI TCP/IP host:port vs Unix socket

We are running a Python WSGI server (uWSGI) and changed to socket file instead of a tcp/ip localhost:port connection. Now our uwsgi logs are full of errors like IOError: write error SIGPIPE: writing ...
0
votes
0answers
191 views

nginx - open() failed (2: No such file or directory)

Our ubuntu server running nginx and uwsgi is causing lot's of open() failed (2: No such file or directory) errors by ngnix. Some web pages loading slowely or do not load completely. It seems to ...
1
vote
1answer
58 views

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

Server response not being received

I have a python program that sends requests via a socket connection to a local 3rd party application which in turn forwards my request to a server. The server response then makes it's way back to my ...
1
vote
3answers
154 views

Cannot connect to mysql server ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

i try to connect to mysql server but it gives me socket issue i have edited my.cnf from /var/lib/mysql/mysql.sock to /home/mysql/mysql.sock Nb: the issue exist before moving mysql db file to the new ...
1
vote
0answers
8 views

Php-fpm corrupts my socket permission on startup

I've installed Apache2.2 with FastCgi module, and PHP-fpm on a Centos server. I configure FastCgi with an external server using the socket option: FastCgiExternalServer ...
1
vote
0answers
15 views

Socket or Message Queuing for installation platform [closed]

I'm trying to develop a system with a main controller and 5 nodes or workers that keeps track of the next current IP. My question is what should i used to achieved this configuration? Should I go with ...
0
votes
0answers
66 views

nginx won't connect to my socket due to insufficient permissions

I have the following setup for nginx and uwsgi to serve a cgit instance. # cat /etc/uwsgi.d/cgit.ini [uwsgi] plugins = cgi uid = nginx gid = nginx socket = /srv/http/cgit/cgit.sock ...
0
votes
0answers
52 views

Setting up phpMyAdmin on a 1&1 Managed Dedicated Server

I'm trying to set up phpMyAdmin on my Managed Dedi Server from 1&1 so that I don't have to log into my 1&1 Account to access the databases / so that my developers don't have to know my account ...
0
votes
0answers
12 views

Could dhclient be causing haproxy to stop listening?

I've noticed every 7 days HAProxy stops responding to requests correctly - it automatically makes firefox download a blank file in place of the website. Upon inspecting the server - everything seems ...
0
votes
1answer
17 views

Transport layer - who makes the demultiplexing phase?

I'm reading the computer network a top down approach 6th edition, and I'm at the transport layer. I understand how a packet from a client is sent to the server through the client socket, but when the ...
0
votes
0answers
57 views

Limit nginx' simultaneous connections to an upstream server

My setup consists of an nginx server and a Node.js upstream server. How can I limit the number of connections between nginx and the upstream server? The intended behavior is: nginx keeps exactly n ...
0
votes
1answer
61 views

Solaris: socket listening on a port (/etc/xinetd.d equivalent on Linux)

I've prepared a script that accepts a request on a server port, then process user input, provides an output through the same port and then dies. The script is not always running but starts when a a ...
0
votes
0answers
41 views

zabbix_agent + socat hanging with close_wait

I have the following setup: remote devices running active zabbix_agentd (version 2.0) using socat to tunnel through an HTTPS proxy. On the server side: Apache with a proxy service allowing CONNECT to ...
3
votes
1answer
901 views

Netcat not able to bind a listening socket

In my computer with Ubuntu 14.04 I can do things like this: $ nc -l 5349 -vvv Listening on [0.0.0.0] (family 0, port 5349) or this: $ nc -vvv -l 192.168.254.96 5349 Listening on [192.168.254.96] ...
-1
votes
1answer
41 views

Ubuntu Mysql stop working after outofmemory in a clamscan, mysqld.sock

I'm having daily problems with postman with autentification througth mysql on my Ubuntu14LTS Server. I think the problem arrise after a clamscan scron that breaks in an Out of Memory. In some way ...
1
vote
0answers
73 views

Wireshark RST against TCP Zero Window

During application sharing with Microsoft Lync Client (Mac OS X), TCP ACK with RST flag is sent from my application end to Lync end against TCP Zero Window packets and call gets dropped. Image Link. ...
2
votes
2answers
125 views

Do network administrators block outgoing traffic to not-well-know ports? [closed]

I've written a Java server to listen on port 49474. My client runs on Android phones all over the US. Of course, they will be connecting from a variety of networks: home, work, school, library, ...
1
vote
1answer
40 views

Java TimeoutException on Ubuntu on SoftLayer

I have java application, that works fine on my local machine. But when I'm trying to start it on SoftLayer, ALL connection is toooo long. For example, simple http connection via HttpAsync or others ...
1
vote
0answers
193 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 ...
-5
votes
1answer
36 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
114 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
54 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 ...
1
vote
1answer
42 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
82 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
62 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
37 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
55 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
54 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
71 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
404 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
136 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
177 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
2k 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
67 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
102 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
24 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
2k 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
112 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: ...