Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [socket]

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.

0
votes
0answers
36 views

How to use socat to a dynamic IP

I'm using socat to redirect TCP traffic to my home from a server. The problem is that my home changes IP every day. If I start socat with a url, it'll not update after some time, it'll just use the ...
0
votes
0answers
25 views

Nginx as Reverse Proxy for multiple servers binded to proxy using UNIX sockets - how to reached in LAN

I am trying to configure nginx as a reverse proxy for multiple servers on my LAN. They should go out on my WAN with different subdomains. Unlike the approach described in Use Nginx as Reverse Proxy ...
1
vote
1answer
63 views

Apache and PHP-FPM security with mod_proxy_fcgi

I use PHP-FPM in a shared hosting configuration. Each FPM pool runs as a different user. Apache runs as www-data. Apache connects via a socket using mod_proxy_fcgi. I allow users to use .htaccess ...
0
votes
1answer
37 views

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

Webmail via imap unix socket - good idea or not?

I'm slowly setting up an email system on a Centos 7 server. The particular software I'm using will consist of postfix, dovecot and roundcube, although my question isn't specific to them (I think). I'...
0
votes
0answers
18 views

Denial of service attack on a publisher application

I have an application that is bound to a socket which is used only for publishing some data to other applications on the receiving end. I am looking for scenarios for denial of service attacks on such ...
-1
votes
1answer
16 views

Seeing/dumping incoming data on a port?

I need to check if some client is sending some data on a specific port of a raspberry pi/debian or windows. Is there some built in program that I can launch to check a particular port for incoming ...
0
votes
0answers
26 views

Glassfish crashes due too many open files

I am having a backend deployment running on a glassfish server, the frontend of my application sends REST request when it needs some data. Also the backend is connected to a mongo database: ...
0
votes
0answers
45 views

How to forward web-socket request to microservice using nginx

I wanted to forward web-socket request to microservice using nginx. I am hitting https://some-host/download-zip-service/downloadFile By this the calls are landing on download-zip-service and ...
0
votes
1answer
54 views

Django deployment with gunicorn socket set up with systemd, gunicorn not honoring gunicorn.conf file settings on Debian 9.4

I followed the systemd deployment instructions here at http://docs.gunicorn.org/en/stable/deploy.html /etc/systemd/system/gunicorn3.service: [Unit] Description=gunicorn3 daemon Requires=gunicorn3....
0
votes
0answers
42 views

Can't connect to server using sockets

I am using this library for networking my game, and it works great on localhost; but I put my server.exe listener on my AWS EC2 windows remote instance, and I have not been able to connect to it. ...
1
vote
0answers
95 views

netstat shows connected socket with path to it, but path doesn't exist

Im inside a docker container and ran netstat -x | grep docker which got me the: unix 3 [ ] STREAM CONNECTED 62288711 /var/run/docker.sock unix 3 [ ] STREAM ...
0
votes
1answer
24 views

What happens to a ESTABLISHED connection after a firewall restriction is enabled between the hosts in the connection?

I would like to know what will happen to an ESTABLISHED connection between two hosts (say A:9999 & B:8888), after a firewall restriction enabled between those two hosts thus preventing any ...
0
votes
1answer
101 views

Nginx confusing $fastcgi_script_name with $fastcgi_path_info

Here is the relevant part of my Nginx configuration file: http { log_format fastcgi '$remote_addr - $remote_user [$time_local] "$request" ' '$status $...
0
votes
0answers
58 views

php-fpm cannot acess unix socket

I'm using different PHP-FPM pools with specific users each one. I just switched memcached to use a socket instead of tcp/udp ports (for many reasons including the recent attacks on the 11211 port). I’...
0
votes
1answer
80 views

How can I count / view all fast-path sockets on windows server?

In case you're not familiar, fast path loopback sockets: https://blogs.technet.microsoft.com/wincat/2012/12/05/fast-tcp-loopback-performance-and-low-latency-with-windows-server-2012-tcp-loopback-fast-...
0
votes
2answers
221 views

Bind a tcp socket below 1000 with a non root user using Systemd, java and Ubuntu 16.04

I wanted to try socket activation with Systemd and Java on my ubuntu server 16.04. My idea is to make my program able to open directly a standard socket number with a user that is not root. I ...
0
votes
1answer
41 views

How does UDP sockets know which source address to respond to?

I have understood that UDP sockets are fully identified by destination IP and destination port. The IPs are in the IP datagram´s header yes, but when the datagram arrive at its destination, only the ...
1
vote
0answers
252 views

socket.io handshake fails on Google https load balancer

We have the following setup for Google HTTPS load balancer. Two Frontends: 1. HTTP traffic to static IP 2. HTTPS traffic to the same static IP(DNS configured to a domain name) Host and Path rules ...
0
votes
0answers
278 views

Redis not run with Unix Socket Enable on Centos 7 with NextCloud

I need to activate a redis cache on nextcloud server! To do this I use unix sockets (they should be more powerful)! Then when installed redis and configured in nextcloud at the start of the redis ...
3
votes
1answer
349 views

How to close a port with no process attached?

This question is similar to Network port open, but no process attached? and netstat shows a listening port with no pid but lsof does not I tried all i can do(as root: netstat, lsof, ls -al /proc/*/fd ...
0
votes
0answers
25 views

How can I route a secure socket connection to different destination servers via a proxy?

My task is to address different servers via secure socket connections at the destination. But the problem is that you can not specify different target servers over normal socket connections. Also, ...
0
votes
1answer
58 views

Uderstanding netstat output

When I run netstat -b on Windows 10 I get lots of results of similar nature TCP 127.0.0.1:64248 LocalHostName:64249 ESTABLISHED [w3wp.exe] TCP 127.0.0.1:64249 LocalHostName:...
1
vote
0answers
223 views

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

uwsgi socket 0 bound to TCP address

I have run docker build -t and created image and latter container.Now I am looking at my docker logs uWSGI http bound on 0.0.0.0:9090 fd 4 uwsgi socket 0 bound to TCP address 127.0.0.1:32824 (port ...
-1
votes
1answer
366 views

Why do the port change when sending TCP data on localhost [closed]

I'm new to network programming and I'm starting simple. I got 2 simple python scripts both running on my machine, a server and a client, the client sends some data using the port 80 and the server ...
-3
votes
3answers
39 views

How do I launch a service on linux

I have written server-socket Java application (not a web application) and I have a server running on Linux machine. How do I deploy this application so that I can request from anywhere from any app (...
0
votes
0answers
101 views

How to start LXC container with local public IP through (host) systemd socket activation?

How to start LXC container with local public IP through (host) systemd socket activation? Terms Local network - intranet network within simple network range (e.g. 192.168.123.0/24) with many users ...
1
vote
2answers
2k views

'/var/lib/mysql/mysql.sock' (13 “Permission denied”) when accessing the socket as non mysql user

I am trying to connect to local mysql server I use for development The server starts fine, but I can not connect to it as a non-root user. [root@somepc ]# mysql -u [someuser] -p[somepass] ERROR ...
0
votes
0answers
84 views

hping3 does not send sequence and ack numbers as specified?

To be precise, I am sending a TCP Ack Packet setting my own manual seq and ack values but the result is different than entered in wirshark. Command: hping3 -s 8000 -p 8000 192.168.1.95 -M 1 -L 1 -A ...
0
votes
0answers
710 views

Firewall blocking data transmitted through Python socket

I have an application written in Python 3 which communicates with an external SIP proxy server through its public IP. Basically the application I wrote sends out a SIP invite to the SIP proxy through ...
2
votes
2answers
413 views

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

What to set uwsgi uid and gid to?

I'm trying to have nginx connect to a uwsgi socket on FreeBSD. I've set the socket to 666 but whenever I issue a request in my browser I can see the following in my nginx logs: 2017/12/12 11:34:04 [...
1
vote
0answers
20 views

Requests timeout when made from outside the LAN

We are a small company that has an Android app backed by 3 servers running Proxmox. All the connections use HTTPS. The problem we are experiencing is the following: connections made from outside the ...
0
votes
0answers
55 views

System.Net.Sockets.SocketException

We are seeing this exception: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host ...
-1
votes
2answers
292 views

Assign Domain Name on a IP:Port Listener [closed]

I have a Java Socket Listener at Port :5000. And since i have an Public IP Address on my Server, it is available at something like this: 123.123.123.123:5000 It is fine. But now, what if i don't ...
1
vote
1answer
932 views

Speed up mongodump+mongorestore

I have created a script to copy a MongoDB database to my machine. I am creating an SSH tunnel (ssh -L ...) then I connect to the tunnelled port with mongodump then I pipe its output to mongorestore: ...
1
vote
1answer
1k views

Expose a Unix socket to the host system from inside from a Docker container

I would like to run aweb server inside a Docker container that listens to a Unix socket, instead of to a port. I'm finding a lot of results on sharing the Docker socket, but I don't think that's what ...
0
votes
1answer
465 views

Unable to stop an invisible socket on port 80

I want to run my Apache server but I got this error: # /usr/sbin/httpd -k start (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, ...
0
votes
2answers
162 views

How to setup Nginx and PHP-FPM socket

This is my third attempt at posting this question now after incorrectly posting to both super user and Stack Overflow. Hopefully this is now the right place! I have taken over managing the company's ...
1
vote
0answers
325 views

Getting systemd-journald (219) to listen somewhere other than /dev/log

I would like systemd-journald in systemd 219 (on el7, so the package is systemd-219-30.el7_3.9.x86_64) to listen for syslog messages on /run/systemd/journal/dev-log, and have /dev/log be a symlink to ...
1
vote
0answers
344 views

Issue deploying Flask Rest Api on Nginx

I'm trying to deploy my flask api rest on nginx (on a subdomain) without success. I've followed this example from Digital Ocean and everything was working properly but then I changed the tutorial ...
0
votes
1answer
724 views

PHP-FPM not working on sockets but TCP only

I have PHP5-FPM installed on Debian with nginx. When I try to open a PHP page then I get Error 502 Bag Gateway. I found out that it is because I am using sockets which looks like is not properly ...
2
votes
1answer
3k views

Unable to restart a systemctl service remotely as a non root user

I have a systemd.socket named gunicorn.socket which I would like to restart after updating some code on a remote server. I've followed the steps detailed in Allowing a non-root user to restart a ...
1
vote
0answers
491 views

Reaching maximum TIME_WAIT sockets (tried tcp_fin_timeout)

tl;dr: How do i get the kernel to drop TIME_WAIT/closing sockets as forcibly and fast as possible? I don't care about data being lost since I'm not sending any. I'm currently running a little test ...
0
votes
1answer
97 views

How to modify Socket Close time for Unreachable IP on Windows?

First of all, please look this question to understand what I mentioned. When I try socket close in windows OS for unreachable IP with UDP, I got the three-second delay. As you can see from the ...
1
vote
1answer
381 views

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

Running a HTTPS SSE server over Kubernetes/Ingress and Google Cloud Platform

I'm running a SSE server on a VPS and it works perfectly, no problems at all, but due to scalability reasons I needed to move it to another server. I moved the server to Google Cloud Platform/Google ...
1
vote
1answer
165 views

Sending Message to server over socket on startup using Upstart

Problem I need to send a message to a a server via a TCP socket during computer startup. We are using Ubuntu 14.04 and therefore, by default, must use Upstart as the system initialization. (We also ...
1
vote
1answer
549 views

PHP-FPM socket reuse causes errors

I have a webserver container running in App Engine which serves a REST API. I've tried to go for a relatively standard implementation - nginx + PHP-FPM using TCP sockets (I haven't gotten a unix ...