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
1 answer
252 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. ...
Codejoy's user avatar
  • 149
0 votes
0 answers
296 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:~# ...
NetworkCode's user avatar
2 votes
1 answer
700 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 ...
71GA's user avatar
  • 383
1 vote
0 answers
1k 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/...
Nozz's user avatar
  • 13
1 vote
0 answers
509 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 ...
tombjarne's user avatar
0 votes
0 answers
634 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 ...
Q-bertsuit's user avatar
1 vote
1 answer
2k 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 ...
user2009388's user avatar
0 votes
0 answers
208 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). ...
MBI's user avatar
  • 101
0 votes
1 answer
1k 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-...
milosgajdos's user avatar
  • 1,878
0 votes
0 answers
70 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 ...
Tim Hockin's user avatar
2 votes
1 answer
592 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, ...
zwol's user avatar
  • 1,365
0 votes
1 answer
459 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 ...
SynAckRst's user avatar
0 votes
0 answers
219 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 ...
alessio's user avatar
  • 11
1 vote
0 answers
286 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 ...
William Pursell's user avatar
0 votes
1 answer
585 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"...
Roby Firnando Yusuf's user avatar
0 votes
1 answer
507 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:/...
Morteza j8's user avatar
0 votes
1 answer
845 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 ...
King David's user avatar
0 votes
1 answer
1k 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 ...
TheCooocy's user avatar
  • 141
1 vote
1 answer
906 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: ...
dk1111's user avatar
  • 33
0 votes
1 answer
155 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 ...
CaptainCodeman's user avatar
1 vote
1 answer
3k 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 ...
SirFartALot's user avatar
0 votes
0 answers
6k 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 ...
Harshal Mahajan's user avatar
0 votes
1 answer
512 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. ...
Sumit Tomar's user avatar
0 votes
1 answer
3k 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 ...
Rishi's user avatar
  • 1
1 vote
1 answer
119 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 ...
mapedraza's user avatar
0 votes
1 answer
360 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 ...
Aditya K's user avatar
  • 923
1 vote
1 answer
1k 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 ...
Michael Altfield's user avatar
1 vote
1 answer
730 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 ...
Santino Santona's user avatar
-1 votes
2 answers
734 views

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

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 ...
Shamim's user avatar
  • 101
0 votes
1 answer
1k 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 ...
Sang's user avatar
  • 101
0 votes
1 answer
2k 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 ...
slaw's user avatar
  • 105
1 vote
1 answer
2k 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 ...
falhumai96's user avatar
0 votes
1 answer
301 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 ...
Liga's user avatar
  • 135
2 votes
1 answer
947 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 ...
Tony Kyriakidis's user avatar
1 vote
1 answer
896 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 ...
ajlittoz's user avatar
  • 111
0 votes
1 answer
1k 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. ...
bazeusz's user avatar
  • 105
0 votes
1 answer
2k 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 ...
Liga's user avatar
  • 135
1 vote
1 answer
844 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)....
ustulation's user avatar
2 votes
1 answer
697 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 ...
user2490003's user avatar
0 votes
1 answer
598 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 ...
TechnicallyTrue's user avatar
2 votes
1 answer
2k 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 ...
Aslam's user avatar
  • 123
1 vote
1 answer
260 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 ...
baumschubser's user avatar
2 votes
1 answer
3k 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/...
Bell-guest's user avatar
1 vote
0 answers
450 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; ...
trbabb's user avatar
  • 131
0 votes
1 answer
1k 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 ...
VinothRaja's user avatar
2 votes
3 answers
2k 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-...
nowthatsamatt's user avatar
0 votes
1 answer
308 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)...
Mehrdad Dadvand's user avatar
0 votes
1 answer
710 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 ...
kjq07bd's user avatar
  • 15
0 votes
0 answers
15k 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 ...
TomR's user avatar
  • 111
5 votes
1 answer
3k 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 ...
Michiel van Vaardegem's user avatar

1
2
3 4 5
12