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
39 views

How to measure performance of stdin and unix sockets? [closed]

How to measure performance of stdin and unix sockets? In terms of GB || MB per second. I mean something to measure raw throughput of stdin for example time cat 1TB_dump.txt > /dev/null ,but without ...
-1
votes
1answer
18 views

Can't connect to socket from outside

I have a problem on my server when I start an application that listen to a port: I can connect to it from the same machine, but not from the ouside world. I noticed this problem when trying to create ...
-2
votes
1answer
19 views

Python and java static IP [closed]

I have a Python server. Each time I change the network the IP changes. I want it to have a static IP over all networks so it can receive data without customizing the code every time. I want to do the ...
-1
votes
1answer
19 views

Blocking a specific external IP:Port connection in RedHat?

I know that in RedHat, in the IP tables I can block incoming connections to a local port. I can also block connections from a specific IP. But is it possible to block a connection from a specific IP ...
0
votes
0answers
22 views

php-main.sock file not found in php version 5.6.20

I have successfully installed nginx version 1.9.11 on my remote server, running CentOS 7. I also installed PHP version 5.6.20 by following this link. I am trying to use a PHP socket for running PHP, ...
1
vote
0answers
23 views

ProxyPass a WebSocket connection to a UNIX socket

In Apache 2.4 you can reverse proxy an HTTP connection to a local Unix socket with: [1] ProxyPass unix:/path/to/app.sock|http://example.com/app/name You can reverse proxy a WebSocket connection to ...
1
vote
1answer
68 views

Centos 6; phpMyAdmin 'Cannot log in to the MySQL server' after moving mysql.sock

I recently moved my mysql datadir from /var/lib/mysql to a new directory /home/mysql mounted on a new hard drive. For neatness sake I thought it'd be nice to place the tmpdir and socket on this new ...
0
votes
0answers
6 views

No connection could be made because the target machine actively refused it error: [Errno 10061] [duplicate]

I start a server on socket using self.sock.bind(('0.0.0.0',0)). How can I make other machines connect to that port? I connect to public IP address and that port, I get : error: [Errno 10061] No ...
0
votes
0answers
95 views

rails server using nginx + puma on ubuntu - suddenly get socket connect failed errors

I have ran jruby on rails in AWS ubuntu trusty 14.04 configuration. my server was going well during several hours. but suddenly get socket connect failed error. -nginx error.log 2016/03/12 10:12:10 ...
0
votes
2answers
33 views

Binding conflict with iptables rules [closed]

I m developing a server in C which bind on a random port I m afraid that the choosen random port could conflict with iptables rules. I mean if the choosen port could be already exist in iptables as a ...
0
votes
0answers
20 views

Courier authdaemon socket missing (exim4)

On my Ubuntu 14.04 server, I'm running Exim4 together with Courier. I tried to configure Exim to use a DNSBL blacklist shortly. Since I rebooted the server, the mail server doesn't work anymore. When ...
0
votes
0answers
8 views

Reverse Proxy Setting in Apache for Web Socket and Custom Ports

Can someone help me please to modify following reverse proxy setting to handle a custom port coming in QUERY_STRING of the URL. Here rest of the setting are fine but I'm not getting how to replace ...
0
votes
0answers
30 views

What happens when connecting to port in TIME_WAIT state?

I'm trying to understand the effect of TIME_WAIT on subsequent TCP connections. I understand how TIME_WAIT behaves when net.ipv4.tcp_tw_reuse = 1, as explained by this answer. But what happens when ...
0
votes
1answer
14 views

Make init script output available without hitting the filesystem

I'm working on an init script for a command which writes extensive activity messages to stdout. The output is only useful for debugging and since it will be running on a Pi, I don't want these ...
0
votes
2answers
296 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
89 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
64 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
35 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
296 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
270 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
84 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
16 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
61 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
203 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
350 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
79 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
273 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
10 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
18 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
89 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
89 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
17 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
18 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
97 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
87 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
59 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
2k 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
46 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
87 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
134 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
41 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
281 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
41 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
183 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
69 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
49 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
91 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
71 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
41 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 ...