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

How to redirect/reroute traffic directed to a certain IP address [closed]

There are two PCs running Windows 10 Pro, named PC "A" and PC "B" that are connected to the same Wi-Fi. Then there is Software "XYZ" (a specialized file viewer) running ...
0
votes
0answers
13 views

Windows Docker slow socket connect

I have two docker containers which are trying to talk to another using web requests, but are experiencing random latency. While debugging, I've broken the issue down to slow socket connection times, ...
0
votes
0answers
25 views

How to find out which kernel module opened a socket?

When I try to find the process for an opened socket using e.g. ss I get the following output: ❯ sudo ss -tulpen Failed to open cgroup2 by ID Failed to open cgroup2 by ID Netid State Recv-Q Send-Q ...
0
votes
1answer
49 views

ssh port forwarding with permament connection between remote and destination

I know you can use ssh to forward a local or remote port to another destination and port. So for example let's say I have this command: ssh -L *:8443:10.0.0.1:443 user@10.0.0.2 So this allow to open ...
0
votes
0answers
18 views

Start systemd socket on VPN connection automatically after boot

One of my servers is setup so that it will automatically connect to a VPN after booting up using a systemd service. Now I want to host a systemd socket on this VPN connection. And the socket should ...
0
votes
0answers
126 views

Curl : Recv failure : Connection Reset By Peer and Unix Socket Crash

I'm trying to set up a unix socket for gunicorn and to ping it from curl (running curl --unix-socket /run/gunicorn.sock http://www.example.com --trace-ascii dump.txt). Unfortunately, the response from ...
-1
votes
1answer
125 views

Python sockets: TCP errors in linux, while same program works fine on Windows10

I'm trying to communicate with a commercial power supply device via TCP/IP using python sockets. I tried using both a virtual linux(centos8stream) and virtual windows10, both running at the same ...
1
vote
2answers
53 views

How to open a socket on EC2 instance?

I want to send webcam video from my laptop to aws EC2 instance. I'm trying to follow suggestions from here and code from here. The issue I'm facing is that I do not know how to open a socket and ...
0
votes
0answers
36 views

How to run socket.io on domain?

How do I run socket.io on a domain because my code works on localhost but not on a domain? I am currently running the server on http://localhost:3000, does this have to be public in some way so that ...
0
votes
1answer
17 views

Serving multiple socket using gunicorn and Nginx cause a NotFound error

I am trying to serve two Flask apps using Nginx as a reverse proxy. In my default.conf which I have reloaded using sudo service nginx restart I have got: location /app2loc/ { include ...
1
vote
1answer
145 views

How to share unix domain socket between containers without named volume?

I have two containers A and B which needs to talk via unix domain socket created by A in /var/run/notif.sock. I can't use named volume as sharing /var/run between containers is risky as it contains ...
0
votes
0answers
16 views

Is it possible to update the default backend of a frontend via socketcli

We have a very dynamic environment and we keep adding backends to our config, so every time we add a new server group, we need to change the haproxy frontend accordingly and reload the process. This ...
0
votes
1answer
221 views

How to change the docker.socket group

I am managing several compute hosts running Ubuntu 18.04 (with systemd) and Docker inside a mostly trusted network. I have an auth server so rather than manually add users to the docker group, so that ...
0
votes
1answer
32 views

simple systemd service and socket failing

I had a service I was trying to run this way but it was slightly a large python program. I took a step back and built a dead simple python program to see if I can get it to run. It fails when I try ...
0
votes
1answer
87 views

Simple code running in systemd exits to fast?

I had this old code base running in xinet d. It was basically a simple python script that waited for standard in to come in on a socket, it would do something with it and respond on standard out. ...
0
votes
0answers
37 views

Ububut 18.0.4 LTS:- unable to start TCP/UDP discard service on port 9 and time service on port 37

I have ubuntu client 18.0.4, I am unable to telnet localhost on port 9 and port 37. root@ubuntu:~# telnet 127.0.0.1 37 telnet: Unable to connect to remote host: Connection refused root@ubuntu:~# ...
1
vote
0answers
45 views

OpenDKIM's UNIX socket and permissions for “others”

Postfix installation procedure created a system user postfix and it's primary group postfix while installation procedure for OpenDKIM created a system user opendkim and it's primary group opendkim. To ...
1
vote
0answers
152 views

nginx logging to unix socket fails with protocol error

debian stable, nginx version: nginx/1.14.2 I get the following error message (error.log) : connect() failed (91: Protocol wrong type for socket) configuration file : access_log syslog:server=unix:/var/...
0
votes
0answers
162 views

stunnel failing randomly with msg: TLS socket closed (read hangup)

I am connected to another server via stunnel and it tends to work for the most part, but sometimes I get disconnected at seemingly random times - my internet is still working throughout, so I am not ...
1
vote
0answers
53 views

Enable GRO for UDP port explicitly

I am implementing a simple socket application in python and I need it to receive UDP packets with GRO enabled. I have checked that only the Python service is running and that GRO is enabled via ...
0
votes
0answers
61 views

How to stop Implicit Source Port Mapping?

I've got an embedded Linux device that needs to forward some broadcast packets to another embedded device that is part of the assembly, connected with a dedicated ethernet interface. Only the Linux ...
0
votes
0answers
78 views

Winsock error 10055 keeps reoccurring

We are having some problems with Winsock after releasing a new version of our software. We currently have 16 servers running Windows Server 2016 that all run an instance of this software. All these ...
0
votes
1answer
160 views

Deactivate default ports of systemd socket activation

I have an Apache Server running on CentOS 8.2, whose sockets are managed by systemd socket activation. But I don't want it to listen on the default port 80, because I want to run a reverse proxy with ...
0
votes
0answers
56 views

Ethernet frames duplication when using VLAN interfaces

I have three processes on linux machine: First is using socket, which is bound to all network interfaces. The second is sending ethercat packets by using broadcast (ethercat doesn't use IP layer). ...
0
votes
1answer
36 views

Is BBR congestion control available on my host or not

I have been looking into enabling bbr congestion control on some of our servers to test if they make any difference for our workloads. We are on Amazon Linux 2: # uname -a Linux ip-10-1-66-180.us-east-...
0
votes
0answers
77 views

What is the difference between the sockets reported by sockstat and lsof

I was trying to track down a process which was leaking sockets and came across something I didn't understand. When I queried all the sockets being used by lsof I got wildly different numbers from the ...
0
votes
0answers
31 views

How to hold a port open without a live PID

I have some iptables port-forwards and I want to make SURE that no other process on the system uses those ports. I can bind() a socket myself, so other processes get EADDRINUSE, but if my process ...
2
votes
1answer
157 views

Passing 8192 sockets via systemd socket activation - fails with E2BIG

I am trying to have systemd start up a daemon and pass it 8,192 listening sockets. I have a .service and .socket file that work reliably with a more "normal" number of listening sockets, ...
0
votes
1answer
133 views

How to skip/fix NAT on raw socket output

I have a caching application that runs in userspace and provides acceleration services to clients running on external hosts elsewhere in the network. Briefly put, my program watches network traffic ...
0
votes
0answers
65 views

ssh tunnel from nagios to greenbone socket

i got 2 servers running. serverA is a monitoring solution check_mk. serverB is a vulnerability scanner with gvm20.08 (openVAS). On my monitoring side i want to retrieve scans, tasks, targets etc. from ...
1
vote
0answers
65 views

Get information about socket of unknown domain

The output of lsof (revision: 4.87) on centos 7.8.2003 shows: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 30858 xxxx 841u sock 0,7 ...
0
votes
1answer
140 views

Deploy Laravel and Socket IO into Nginx

I've deployed my Laravel project that using socket io on nginx here is the server spec : NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora"...
0
votes
1answer
138 views

Nginx Config for ws://<ip>:<port>

I have a domain i call it <domain> and ip call <ip> and port <my-local-port>, i wan't using nginx on my server (dns binded to my server success), my problem is that reverse proxy ws:/...
0
votes
1answer
108 views

what are the options to close manual the port correctly or release the port on rhel machines?

we have redhat 7.5 server we are suspect that port 50070 not closed correctly by the service , ( we check by netstat and PID not found ) but from the log we can see that port is in use so we try to do ...
0
votes
0answers
73 views

Removed dbus socket crashes sssd ssh component

I'll try to be as concise as I can but I'm not entirely knowledgeable yet as to how our infrastructure was set up. We use CentOS 7 machines with FreeIPA and the latest version of sssd (1.16.4-37) and ...
0
votes
1answer
134 views

Postgres authentication type “local” vs “host 127.0.0.1”

I have a Postgres v10 Server to which only local connections will be established. In the documentation I find two methods to configure such an authentication process in pg_hba.conf: local and host ...
1
vote
1answer
275 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
48 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
359 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
0answers
5k 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
251 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
1k 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 ...
1
vote
1answer
44 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
1answer
84 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 ...
1
vote
1answer
335 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 ...
1
vote
1answer
248 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
53 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
1answer
434 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
384 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 ...

1
2 3 4 5
11