Questions tagged [sockets]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

I print only to file, yet I get cups errors. How do I stop these denied_mask=“send connect” messages?

1 Time(s): audit: type=1400 audit(1592542742.490:6907): apparmor="DENIED" operation="connect" profile="/usr/sbin/cupsd" pid=27801 comm="cupsd" family="unix&...
0
votes
0answers
11 views

How to list all opened bluetooth socket on Ubuntu 18.04?

I am investigating some issues with Bluetooth exchange between by laptop and android smartphone, so at some point of time I needed to list all opened Bluetooth sockets on my laptop, but I faced a ...
0
votes
0answers
82 views

Ubuntu failed to listen on udev Control Socket error on booting in 18.04 fix

Noob here getting the error: Failed to listen on udev Control Socket. I am currently using Ubuntu 18.04. Any help would be thankful.
0
votes
1answer
17 views

Communication between two netcats

Guys why is this happening: I launch this on one console nc -l 5000 -e /bin/bash And this on another one on the same pc nc localhost 5000 But it shows connection refused! Why is this happening and ...
2
votes
2answers
126 views

Mysql install ERROR: Database files are locked. Daemon already running? Warning: Unable to start the server

At first I removed previous MySQL installation apt autoremove mysql-server-8.0 MySQL has been removed from services. Then I tried to install new MySQL apt install mysql-server which throws me an ...
0
votes
1answer
33 views

Cannot open sockets after suspend

When I boot my computer everything works fine, but after resuming from suspend applications are not able to open new local sockets. My connection and DNS are fine. I can ping domains. I can browse ...
0
votes
2answers
861 views

iriunwebcam doesn't work on 20.04

iriunwebcam (https://iriun.com) has worked fine on Ubuntu 20.04 LTS as well as on Ubuntu 20.04 beta on another VMware virtual machine, while it won't still work on a real PC. Also it works fine in ...
1
vote
0answers
140 views

How to restart a systemd socket?

Problem in a nutshell: systemd creates a socket on boot, but it is not possible to restart or recreate it without a reboot. /etc/systemd/system/gunicorn.socket [Unit] Description=gunicorn socket [...
1
vote
1answer
73 views

outward traffic blocked

So I have this web server which is accepting incoming traffic and is able to serve back replies. However, if the server has to initiate any kind of traffic (icmp/tcp..) it fails: Its been up for > 600 ...
0
votes
0answers
73 views

Connecting to systemd activated socked: Failed with result 'service-start-limit-hit'

I'm trying to use systemd activated sockets as per http://0pointer.de/blog/projects/socket-activation.html When I try to connect to my socket I get the following: test.socket - Test Socket Loaded:...
2
votes
1answer
257 views

Communicating via a local socket or named pipe

I'm reading a book that is related SSH. I can't figure out what this sentence means. SSH clients communicate with the agent via a local socket or named pipe whose filename is stored in an ...
1
vote
1answer
562 views

Clamav-daemon on Ubuntu 16.04.6 LTS: Why is clamd socket file not created in /var/run/clamav?

On Ubuntu 18.04 server a socket file is created when starting clamav-daemon without problem. On an older server using the 16.04.6 LTS the socket file is just not created whatever I tried. Even I ...
4
votes
1answer
156 views

Server stops accepting connections after ~120,000 active on 18.04.3

I'm running a type of perf test where I have a simple TCP server with 4 IP addresses that is listening on a port and getting connections from several other computers on the local network. Everything ...
1
vote
1answer
56 views

How to send packets at 512 nano sec delay using Socket Programming and UDP socket

Using SOCK_DGRAM for UDP sockets All packets are 22 bytes in length (ie 64 including headers) client.c ... no_of_packets--; sprintf(buf, "#:!0 rem"); sprintf(buf, format , buf); ...
-1
votes
1answer
541 views

Stop socket connects (force)

Can you help me to close socket connection force. I have PHP script which works like listener at port 1234 But some times i need to relaunch this script. So i'm doing "killall php" and then "php ...
0
votes
1answer
44 views

How to make an outgtoing TCP connection through specified netwrok interface?

Is there a way to implement in C program a next feature: it's need to making outgoing TCP connections through specified network interface? as example: eth0 - 172.16.0.1 eth1 - 192.168.1.1 In some ...
2
votes
1answer
4k views

Failing to Start gunicorn.service using systemd

gunicorn.socket [Unit] Description=gunicorn socket [Socket] ListenStream=/run/gunicorn.sock [Install] WantedBy=sockets.target gunicorn.service [Unit] Description=gunicorn daemon ...
1
vote
1answer
440 views

#include <SFML/Network.hpp> not found

Can someone help me out with this error. Trying to program a network scanner cppns.cpp:2:10: fatal error: SFML/Network.hpp: No such file or directory #include <SFML/Network.hpp> ^~~~~...
0
votes
0answers
35 views

Question about TCP/IP socket data transportation time

I have a problem that I have to test a TCP/IP connection beetween two computers. My setup is two computers without a DHCP router, both computers are Ubuntu 16.04 and I use a 128 kb message as a test. ...
0
votes
1answer
133 views

I am new to computer, so I try to install LAMP in ubuntu 18.04. and this is my problem, please help the Masters

Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Does have any idea?
1
vote
1answer
277 views

Problem in reading from socket

I have a spark streaming program, that reads data from a socket I have craeted using: nc -lk 9999 The program reads the data from socket and exclude the "Error" messages. When I write manually in ...
0
votes
1answer
153 views

Import system log files into local socket

I have coded a single program in spark to receive data from a local socket and capture lines that has the "Error" in them. I write manually in terminal: $ nc -lk 9999 Error: some error message ...
1
vote
0answers
434 views

nslookup working fine but ruby http call throwing error - getaddrinfo: Try again (SocketError)

nslookup and dig are resolving the address but ruby program throwing error. here is the stack trace 10: from /usr/local/bundle/gems/rest-client-2.0.2/lib/restclient.rb:67:in `get' 9: from /usr/...
1
vote
2answers
265 views

Wrap tcp listener script so that it uses a sock file instead

I have a program when run, starts listing on on port 12345 $ ./cool_script.pl My linux administrator says it's against the policy to open ports. He says I'm allowed to use ~/cool_script.sock (unix ...
0
votes
0answers
4k views

internet very slow speedtest fails with socket errors

We changed ISP's recently, & I notice that the ubuntu computer is having a lot of difficulty now with the internet. It frequenly hangs in the middle of a download. When I visit speedtest.net on a ...
1
vote
1answer
721 views

how to send data from virtual machine to host

I have a virtual machine (Ubuntu) and I need to send data through socket communication to my host PC (Ubuntu as well). Is there a way to do it? I found out that the localhost of the PC and VM are the ...
0
votes
1answer
1k views

mysqld directory disappears after using sudo service mysql stop

Recently upgraded to 16.04 from 14.04. Apache2 works and PHP client works. But /var/run/mysqld goes missing after stopping or restarting MySQL service. Tried to uninstall MySQL 5.7 and reinstall, and ...
0
votes
0answers
350 views

How to establish tcp connection between two snaps using snapcraft?

I'm able to use socket bind when I'm running both client and server snap on same localhost. But it fails over network. I used network:bind and network plugs for my snap. Using nmap server port is not ...
1
vote
1answer
40 views

Use a “t” in a socket already used by another process

I want to read (man-in-the-middle, if you will) traffic on a socket that another process has already opened. I am doing this for debuging purposes. I have a process (firefox) that is using a ...
0
votes
1answer
1k views

IPV6 Binding Failure Error: Cannot assign requested address [closed]

I have configured Ubuntu Linux system with the following interfaces & assigned IPV6 addresses as follows: **Eth0:** Link encap:Ethernet HWaddr 00:50:56:8d:57:64 inet addr:192.168.254.10 ...
0
votes
1answer
103 views

How to put NIC on different CPU socket? [closed]

I want NICs in the different sockets, because for now I have NIC on the same CPU socket. Could you help me how to change it? I've attached how it looks like for now:
0
votes
1answer
225 views

Cannot open network adapter

I am running a simulation software installed using wine, but when I run a demo, it says: cannot open network adapter: any: you don't have permission to capture on that device(socket: operation not ...
0
votes
0answers
3k views

MongoDB could not start: bind_ip error: bind() failed errno:99 Cannot assign requested address for socket

I follow installation instructions for mongodb-org in MongoDB documentation. My Ubuntu version is 14.04. This is my /etc/mongod.conf # mongod.conf # for documentation of all options, see: # http://...
0
votes
0answers
171 views

aptdaemon folder in the home directory with debconf.socket

I have been searching and browsing for a long time and have not been able to find an answer for my question. I found 2 files in y home folder that I've never created. aptdaemon-tw2bIZ aptdaemon-...
1
vote
1answer
730 views

Can bonding two NIC give me double speed on LAN?

I have three PC, named A, B, S. A have one NIC 100 Mb/s, B is like A. S have two NIC, each one is 100 Mb/s. I use a 1 Gbs switch. All NICs of A, B, S are connected to switch. Now a write a tool in ...
1
vote
1answer
2k views

Why is python listening on port 8000?

Dears, I wanted to ask if anybody has details on why python is listening to port 8000 (local and remote connections as well). Can it be a backdoor ? I tried to telnet to the ip/port and the ...
1
vote
0answers
269 views

exclude socket files during diff -r

diff has an option --recursive (-r) to do a comparison between two directories (the files inside them). Is there a way to make diff ignore all socket files and only socket files? I am using diff --...
3
votes
0answers
2k views

/var/run/postgres keeps being deleted, preventing postgres from starting

By default, my PostgreSQL installation was creating a socket in /tmp but my psql command-line client was looking in /var/run/postgresql/.s.PGSQL.5432. To remedy this, I edited postgresql.conf and ...
0
votes
0answers
311 views

How to use lsof with SSH ControlPath?

I am extensively using SSH ControlPath and would like to use the lsof tool in order to check which process is keeping a ControlPath socket up and running. I am using OpenSSH_7.2p2 Ubuntu-4ubuntu1, ...
1
vote
0answers
82 views

Java Applet on Ubuntu Web Server

I have an java applet to sign documents digitally: http://www.pki.sanluis.gov.ar/PkiAsp/Paginas/Pagina.asp?PaginaId=54 I have a middleware to do this from a smart card. I can't export the private key ...
4
votes
0answers
9k views

Mariadb Plugin 'unix socket' is not loaded

After installing Mariadb on Ubuntu 15.10 I was unable to use mysql. The following error was reported: Plugin 'unix socket' is not loaded. It seems that plugin table in the mysql db was empty. Why ...
-1
votes
1answer
2k views

error while starting drbd service

I am trying to make server mirroring through heartbeat and drbd. The problem is that while starting drbd i get this error : error creating netlink socket. the full message of the error is given here ...
1
vote
1answer
2k views

How can I change Maximum segment lifetime in Ubuntu 14.04

How can I change maximum segment lifetime in Ubuntu 14.04? there is no net.inet.tcp.msl there The problem is that I need my TCPsockets to live more than 240 seconds..
1
vote
1answer
2k views

TCP IP Socket Client - Available Options?

I deal with a lot of socket programming and I need a client that can connect to a listening server and be able to send both JSON and XML. Is there any software that is capable of that? I tried ...
0
votes
1answer
851 views

What is the relationship between sockets and ports?

I am trying to understand the relationship between sockets and ports. I found that a socket is part of a port and it handles communication for that port. However, on another blog I read Os does not ...
2
votes
1answer
240 views

what is the path start with @

What is the @ character in beginning section of sockets's path in output of "netstat -a" command? unix 3 [ ] STREAM CONNECTED 10868 1261/X @/tmp/.X11-unix/X0 unix 3 ...
4
votes
0answers
2k views

Bluetooth Socket Program: connect: Host is down

I am trying to test rfcomm_server.c and rfcomm_client.c (from the link https://github.com/balle/bluetooth-snippets) on my new Bluetooth dongle. When I run rfcomm_client, it exits on connect giving ...
0
votes
1answer
897 views

How to Measure the Bandwidth Utilization of a Link

I have written a Socket program which uses read and write command to send and receive data . I am running it on two server .Both Servers are connected with a 10 Gbps link . Now How I can measure that ...
10
votes
1answer
3k views

Launching programs after hostname change returns error _IceTransSocketUNIXConnect: could not connect to local-host

After changing the hostname on 14.04 I cannot launch unetbootin, attempting to launch the application from bash returns: _IceTransSocketUNIXConnect: Cannot connect to non-local host OLDHOSTNAME ...
0
votes
1answer
1k views

What exactly is a connection through socket or what does the output of lsof tell us?

I'm streaming some files from S3 to an EC2 instance to get summary data from the headers. I use key.close(fast=True) for all the keys I get from boto.s3.bucket.Bucket.list() (python library to access ...