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.

Filter by
Sorted by
Tagged with
1
vote
1answer
24 views

Detect SYN flood attack in python

I have a piece of python code as follow s = socket.socket() s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) s.bind((IP, PORT)) s.listen(256) while True: revdata = "" try: ...
0
votes
1answer
41 views

Is there a “server” version of telnet? [closed]

If I want to quickly connect to a socket as a client and type something I can use telnet. Is there a version of telnet or a similar program that provides the server-side of this? In other words, is ...
0
votes
1answer
35 views

dovecot socket not found running as service

I got a strange problem concerning dovecot. My dovecot was working flawlessly on my cubietruck until yesterday, when I upgraded from debian/jessie to debian/stretch (armhf). /var is symlinked to ...
0
votes
1answer
792 views

Client network socket disconnected before secure TLS connection was established

I'm facing an error on running the node script which generates the PayPal invoices using SDK and when it runs from the local server it is working fine but when it runs on production server it is ...
0
votes
1answer
69 views

Not able to established more than 65532 TCP/IP Socket Connection in windows 10 after setting -DFD_SETSIZE to 110K

I'm not able to establish more than 65532 TCP/IP Socket Connection on Windows 10. After 65532 TCP/IP Socket Connections in Windows 10, getting Socket Error 10055 - No Buffer Space Available. ...
0
votes
1answer
37 views

Python Socket Not Able To Connect To Windows Server

I am using socket library in python and want to connect client (my computer) to server (AWS EC2 Windows instance). But client always give error:- "TimeoutError: [WinError 10060] connection failed ...
0
votes
1answer
23 views

How I can continuously log processes connected to a socket

I have a project with an architecture based on a RabbitMQ queue. Each day at 00:30 triggered by a CRON job, the producer process gets the information from a web page and writes in the queue in order ...
0
votes
0answers
14 views

Port Mirroring for IPC

I have two legacy processes that I cannot edit, and that use a TCP port for IPC on a Linux machine to send data from one to the other using the looppback interface. Producer: uses a random port to ...
0
votes
0answers
16 views

Logging chrooted users with different socket/hide “/dev” folder

I have a few chrooted users on my sftp-server. Logging works as intended, but I have one simple question: Is it possible to hide the "/dev" folder for the users? My configuration now: module(load="...
0
votes
1answer
20 views

Why does Tomcat 9 have established connections on localhost

I'm trying to understand why Apache Tomcat 9 has certain established connections that are via localhost. I'm using the Apache Tomcat 9 on windows. See below, I'm looking at the TCP/IP section in ...
0
votes
1answer
52 views

Does Varnish support unix domain socket files?

Does varnish support unix socket files? I'd like to accelerate my website by adding a varnish reverse proxy (HTTP accelerator/cache) before my web server. My web server's virtual host is currently ...
0
votes
0answers
41 views

Diagnosing socket usage on GNU/Linux, matching data from different tools

I'm trying to understand a situation with a server I'm working on. My problem is summarized here: [root@server ~]# cat /proc/net/sockstat sockets: used 2338 TCP: inuse 15 orphan 0 tw 29488 alloc 438 ...
1
vote
1answer
96 views

Postfix over proxy like SOCKET or SSH tunnel

I'm trying to send mail over proxy (SSH tunnel or SOCKET proxy) by postfix. I tried to do something like that schema: I'm using MacOs with no firewall. The receiving client over browser has been ...
0
votes
1answer
38 views

Is it actually possible to send some data to remote destination over tcp/ip without any socket?

I am studying socket concept. As far as I learned socket is like electrical socket that is created in both end of communicating devices (or processes). Socket can keep itself alive forever to listen ...
0
votes
0answers
77 views

Docker race condition leading to curl error “transfer closed with 1 bytes remaining to read”

It is hard to fully describe our problem. However, I will try my best to provide full information. I spent many hours and still stuck. Hope that anyone here can help me. Currently, our container ...
0
votes
1answer
64 views

Connecting to a python socket behind a router

I have a Python script on my server which opens a socket that can be connected to from anywhere. It works on my digitalocean test server that has a public IP as shown by ifconfig. It does not work on ...
0
votes
1answer
1k views

Cannot Create QEMU Socket Networking in Windows Host using Multicast Fails with Unknown Error

I am trying to create a simulated VLAN using socket networking, and the only way to connect multiple VMs in one network in QEMU using socket networking is by using the multicast mcast option of the ...
0
votes
1answer
25 views

Why don't I see the TCP handshake in the HTTP server?

When I create a simple http server (a socket listening to a port) I don't see the actual TCP handshake taking place. Why is that? Why is it hidden from me? For example if I start a server on port ...
1
vote
0answers
168 views

Scaling and Load testing Django Nginx and Gunicorn: 502 Server Error + Resource temporarily unavailable gunicorn.sock

I'm doing load testing with locust to see if my server can handle 1500 users. What I'm using: Django, Nginx, Gunicorn, Postgresql My droplet: 24vCPUs, 128GB RAM, 25GB SSD at about 1100 users I start ...
1
vote
1answer
118 views

SELinux, Nginx and fcgiWrap: how to allow access to fcgiWrap socket?

I am under Fedora 31 (linux kernel 5.4.13, Nginx 1.16.1, fcgiwrap 1.1.0) running with SELinux in enforcing mode (policy: targeted 3.14.4-44.fc31). My box hosts a server driven by Nginx. Part of it ...
0
votes
1answer
71 views

Recreate a bind to a unix socket with bound file removed

I've been confronted with a specific situation recently, searching through the internet and linux specs did not give a definitive answer. Well, I believe it's not possible but maybe you know the way. ...
0
votes
1answer
140 views

How can HTTP work over UDP (in the case of Google's QUIC protocol)? [closed]

Here is my understanding of how a client-server HTTP server works. The client creates a TCP socket connection to connect to the server and sends data. The server creates a TCP socket connection to ...
0
votes
1answer
94 views

Socket send redirected to a different interface than what it is bound to

There are 2 NICs (network interface cards) with IPs IP0 and IP1 as primary addresses given to them as seen in the kernel routing table via ip route. Say a TCP socket is bound to IP0 (and some port P0)....
0
votes
0answers
41 views

Long wait for POLLIN (in poll syscall)

First I will describe my environment: I have production environment with kubernetes running on this. I had around 10 applications running on one of K8S node. I observed long loading times of my ...
1
vote
1answer
58 views

How do I “watch” a unix socket to see what requests are coming through?

My nginx is forwarding its incoming http web requests to a local unix socket (unix:/var/run/foo.sock). On the other end I have a separate web server (puma + ruby on rails, if it matters) reading from ...
0
votes
1answer
70 views

mk-livestatus No UNIX Socket Existing

I'm currently in the process of setting up NagVis, and one of the prerequisites is that mk-livestatus be up and running on your Nagios server. This is proving difficult. The website for check_mk ...
0
votes
1answer
185 views

How do i connect to remote Potgresql server via Unix Doman Socket over SSH [closed]

I have a two machines, my workstation running on Arch Linux and my cloud server running on Ubuntu. I have installed Postgresql on my server, and it is accessible via Unix Domain Socket on the server ...
0
votes
0answers
59 views

VPN connection over Wireguard

I am having a friend who I am trying to help. He is working for a company from home connecting to an SSTP VPN in order to access his work-related resources. The problem is that due to some privacy ...
0
votes
0answers
51 views

WebSocket connection VS single request - which loads server more? [duplicate]

Websockets are new to me, and I couldn't find a benchmark for this specific question (maybe i was searching with incorrect keywords)... So, lets say, I have Apache (php) as backend. then i have to ...
0
votes
1answer
66 views

Wrap unix sockets to make them HTTP compatible

I want to use signald via web. signald is an application that provides a unix socket and communicates in JSON. I can use nginx to connect to the unix socket via HTTP(S). But signald does not ...
1
vote
0answers
191 views

gpsd.socket for chrony does not work

I tried to get more accurate time from gps data using ublox module and centos but it seems gpsd.sock does not work properly to get the data to chrony. am I missing somthing ? [root@info /]# cat /etc/...
1
vote
0answers
69 views

git-http-backend blocking with fastcgi on nginx

I have git-http-backend serving git repos through an nginx fastcgi proxy. The nginx config looks like: server { listen 443 ssl; server_name git.example.com; ...
0
votes
1answer
111 views

TCPDUMP, tcp Flag not changing from Flags [S] to other flag values

I need support understanding these lines. when i tried to connect to server in a particular port it shows connecting and gives me timeout error. But in the tcp-dump command the packet flag not ...
0
votes
2answers
592 views

Installing the Data Plane API in the HAProxy Process Manager

I'm trying to start the Data Plane API on HAProxy boot using the instructions detailed here: https://www.haproxy.com/documentation/hapee/1-9r1/configuration/dataplaneapi/#using-the-haproxy-process-...
0
votes
0answers
49 views

“Operation not supported” error when using sendto api with multicast on FreeBSD socket

I have got some weird issues. I want to send data by using multicast address on the FreeBSD socket. Here is the sample code. // bind socket bind(sd, (const struct sockaddr *) &saddr, sizeof(...
0
votes
1answer
102 views

what is difference between simple TUN and VPNs like PPTP and L2TP

In respect of VPNs and tunneling, as far as i know, TUN is a virtual interface works on network Layer 3 (IP packets), and is nothing more than a simple more likely UDP socket link in practice (I think)...
0
votes
1answer
97 views

Connections shows up in tcpdump but cannot not in auditd or ss

I ran tcpdump on a node which I can see many outbound TCP connections to a specific host (inside my network) on a specific port (8086). I'd like to know which process is making those connections. I ...
0
votes
0answers
3k views

How to troubleshoot Windows error #10057 Socket is not connected at the networking level?

https://docs.microsoft.com/en-us/windows/desktop/winsock/windows-sockets-error-codes-2 says, that the cause of #10057 is A request to send or receive data was disallowed because the socket is not ...
3
votes
1answer
381 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
795 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 =...
1
vote
1answer
660 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
54 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
302 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 ...
3
votes
2answers
66 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
1answer
288 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
372 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
1answer
848 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 ...
2
votes
1answer
408 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
342 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 ...
1
vote
0answers
29 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 ...

1
2 3 4 5
11