Stack Exchange Network

Stack Exchange network consists of 175 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.

2
votes
1answer
64 views

What are sockets with bound state on 0.0.0.0

I know a listening socket on 0.0.0.0 is listening on all IPv4 interfaces. But we also see a lot of 'bound' stockets on 0.0.0.0, if we check with Get-NetTCPConnection in powershell. All on high port ...
0
votes
0answers
59 views

PHP-FPM doesn't create the socket when run as non root user

I am creating a Docker image that run NginX and PHP-FPM (with Supervisor). The container is run as www-data, but the PHP-FPM socket is not created. Here are my config files : www.conf [www] listen =...
0
votes
1answer
99 views

Puma with systemd and socket activation - Errno::EADDRINUSE

I have a Rails 5 app, running on puma 3.12.1, MRI 2.6.2, and Ubuntu 18.04. It used to run with pumactl and a custom control script but I want to configure it properly with systemd, using socket ...
3
votes
2answers
38 views

how does an OS route messages sent to the same port to different sockets?

This is something I've never quite understood: A service offered by a server can be uniquely identified by its IP address and port, for example 1.2.3.4:22, but multiple clients might connect to the ...
0
votes
1answer
47 views

How to access the floating ip in browser rather than a localhost?

I have an instances that was made in OpenStack which have a floating IP for its instance, the IP for this machine is 10.1.1.164. I tried to forward this instances so it will accessible in my firefox ...
0
votes
0answers
30 views

Not getting BGP Notification with Optional Attribute Error

i am working with BGP implementation with Ubuntu, for the testing purpose i want to get 'notification message' indicating 'optional attribute error'. i am using python socket programming.here in my ...
3
votes
2answers
57 views

What address should the client connect the socket to [duplicate]

SOLVED SOLUTION: I tried the connection with a little server program and it works perfectly fine. I could connected it to 10.195.5.53. My problem is within the software of my client program it has ...
0
votes
0answers
24 views

Measuring Size of received UDP packet on port?

I would like to measure the size of a RECEIVED UDP packet on one of my ports. I have an application sending some binary data and I would like to measure the UDP packet size on the received end. I ...
0
votes
1answer
52 views

Openlitespeed as a WebSocket Proxy

I am building web applications related to the socket. And my application runs well without https, if it has https, it will not connect. And as guidance on nginx must configure additional proxy. But ...
0
votes
1answer
70 views

difference between local and inet socket?

I noticed that, while setting up opendkim, the options for the Socket are: #SOCKET="local:/var/run/opendkim/opendkim.sock" # default #SOCKET="inet:54321" # listen on all interfaces on port 54321 #...
1
vote
0answers
197 views

systemd: Shutdown socket-activated service / disable socket-activation

I have an HTTP service (let's call it Foo) with systemd socket activation. I would like to support this setup: monitoring service tells Foo to stop (e.g. POST /stop) Foo finishes it's (potentially ...
0
votes
0answers
32 views

Mirror local-connection-only port to any-connection network port

I have two containers; producer and consumer on the default bridge network with docker-compose. producer has a service running on a local socket and consumer cannot access it. I need to mirror a ...
1
vote
1answer
94 views

How do I change permissions on a ssh forwarded unix domain socket

consider the ssh command: sudo ssh -L /my/local/sock:/var/remote_socket me@remote This runs as root, so the created local unix domain socket has ownership root and 0600 permissions. How do I tell ...
0
votes
1answer
62 views

How to redirect traffic sent to tap to a specific ip addr

I created a tap device using the following commands: sudo ip tuntap add mode tap tap7 sudo ip link set tap7 up sudo ip addr add 77.0.0.1/24 dev tap7 Now, I am using c++ sockets programming to write ...
0
votes
0answers
38 views

PDO to mysql socket connetion trouble

I try to connect to mysql (mariadb) via socket connetcion. I have created the mysql user via unix_socket identification. Also I have given some privileges to the test db. I wrote the conn.php file as:...
1
vote
0answers
23 views

Socket usage with Linux

I am wondering, does anyone know if there is a setting within linux that designates the max amount of time a socket is allowed open? I ask this because for whatever reason, no matter if there is data ...
8
votes
0answers
108 views

How much does FreeBSD accept_filter actually improve performance in a modern world?

I recently learned about FreeBSD's accept_filter socket option which can allow a worker process to avoid context switching by, for example, waiting until a full HTTP request is received with accf_http:...
0
votes
0answers
179 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
690 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
465 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; } ...
1
vote
2answers
211 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
19 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
18 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
75 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
93 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
332 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
87 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
1answer
308 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
26 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
175 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
175 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
163 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
692 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
99 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
1answer
607 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 ...
3
votes
1answer
995 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
30 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
188 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:...
2
votes
1answer
607 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
208 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
592 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
44 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 (...
1
vote
2answers
4k 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
1k 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
702 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 ...
2
votes
0answers
1k 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
24 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
107 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
534 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
2k 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: ...