Questions tagged [sockets]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

crontab - mysqldump is using different socket

First, I have already permanently set the PATH directory of MySQL so I can use it in terminal in any directory. To verify this process, I restarted my computer, open the terminal and use the command ...
user avatar
0 votes
0 answers
24 views

My Ubuntu 20.04 spits out "logger: socket /dev/log: No such file or directory"

I'm a newbie to Ubuntu. I am trying to run a script that needs access to /dev/log when the following error occurred "logger: socket /dev/log: No such file or directory". Any ideas on how to ...
user avatar
0 votes
1 answer
41 views

Which ping-like command to measure lowest-latency possible between two machine?

My task is to measure the network latency between 2 machines (both 1-way and 2-way are OK). The 2 PCs are in the same room, on the same network, and connected to the same router. When I use the ping ...
user avatar
  • 103
0 votes
0 answers
10 views

Recieved socket error when trying to connect 3D printer

I am trying to run a version of the EZT3D S2 foldable printer, similar to the artillery printers, there are lots of copies and "versions" of this printer under many names, from China, so it ...
user avatar
0 votes
1 answer
76 views

run ip commands without sudo

I am currently writing something that utilizes a usb CAN interface to communicate with a CAN bus. If I switch users to root, the program runs just fine, however, I want to run the program as my local ...
user avatar
  • 1
0 votes
0 answers
18 views

Are socket numbers realted to source port numbers

I understand that socket=IP + port number but I was wondering if the internal number a socket has is related to the ephemeral port that is chosen for outgoing TCP connections? For example this is from ...
user avatar
0 votes
0 answers
31 views

Testing TCP Client on Ubuntu VM from Android Mobile on Ethernet

I am developing a TCP Application. My administrator has blocked TCP listening on my Windows PC. So, I am using an Ubuntu 20.04 VM on the virtual box for developing and testing my TCP server ...
user avatar
  • 101
1 vote
1 answer
83 views

Why does KeePassXC creates a socket file in tmp folder

Im new to Ubuntu. Just started to use KeePassXC and noticed when KeepPassXC is launched, it creates a .lock and .socket file in the tmp folder. Im trying to figure out what these files are, what they ...
user avatar
  • 51
0 votes
0 answers
15 views

wanted to install 2 socket server with LTS, what will be the process to get latest version with LTS? [duplicate]

my customer is buying dell XW8545 with 2 AMD processors, and asked us to install ubuntu latest version with LTS. please guide...
user avatar
0 votes
0 answers
44 views

Upgraded to 21.10, now getting socket error `Error: Command failed: cat /sys/fs/cgroup/memory/memory.stat` using Node.js

Last night I upgraded my Ubuntu to version 21.10 using the automatic installer. Now I am unable to execute my Node.js application I am working on for my job. I'm getting two different errors: Error: ...
user avatar
  • 176
0 votes
0 answers
168 views

Forward terminal output to localhost port

I am new to tcp. Suppose I have a command to run on terminal that prints output line by line. How do I forward that output to a localhost port so that I can read it with other apps written in Python. ...
user avatar
1 vote
1 answer
87 views

Game dedicated server application crash/delay after some time on Ubuntu 20.04

I've been running a game server application which, after some time, crashes with all the people connected to it (packets delay for one/two minutes making most people disconnect although the ...
user avatar
  • 11
0 votes
0 answers
252 views

Game dedicated server application crash/delay after some time on Ubuntu 18.04 - xfce4 GUI

I've been running a game server application which, after some time, crashes with all the people connected to it (packets delay for one/two minutes making most people disconnect although the ...
user avatar
  • 11
2 votes
1 answer
7k views

ConnectionRefusedError: [Errno 111] Connection refused

Executive Summary. I get "connection refused 111" when trying to communicate over sockets in Python. When the connection is refused, THE LISTENER STOPS LISTENING. Same problem occurs using ...
user avatar
0 votes
0 answers
285 views

** socat[8592] E connect(5, AF=1 "\0/tmp/dbus-6LCOz2lgUY", 23): Connection refused**

I am a BEGINNER with Ubuntu (Linux). I am trying to create an independant network namespace (that I downloaded here : https://github.com/Lekensteyn/netns) in order to capture Internet traffic without ...
user avatar
1 vote
0 answers
1k views

zmq.error.ZMQError: Address already in use

I have installed Anaconda (python 3.7) in my ubuntu 20.04 system. However, while running my Python code from the Spyder console, I am getting the following error: An error occurred while starting the ...
user avatar
0 votes
2 answers
333 views

Why doesn't MariaDB or MySQL start?

Apparently purging, and/or reinstalling mysql and mariadb can cause conflicts, so tried: root@mordor:~# root@mordor:~# sudo apt purge mariadb-server mariadb-client mysql-client mysql-server Reading ...
user avatar
0 votes
0 answers
626 views

How to handle missing mysqld.sock socket?

I am new to MySQL. I naively tried to uninstall my MySQL from by Ubuntu 20.04 before attempting to reinstall it again. In order to do this, I followed the instructions listed in the accepted answer in ...
user avatar
  • 101
1 vote
0 answers
95 views

Cannot open chromium neither by the icon nor by the terminal, the following message appears:

$ chromium-browser error: cannot communicate with server: Post http://localhost/v2/snapctl: dial unix /run/snapd-snap.socket: socket: permission denied Trace/breakpoint trap (core dumped) I will ...
user avatar
  • 33
1 vote
1 answer
243 views

Generate a dir for unix sockets WITHOUT systemd

In normal Ubuntu I used to create a dir for Unix sockets as follows (say for project foo): Create a systemd script in: /usr/lib/tmpfiles.d/foo.conf Place the following code in the script: /run/foo ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
4 votes
3 answers
7k 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 ...
user avatar
  • 479
0 votes
1 answer
256 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 ...
user avatar
1 vote
5 answers
9k 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 ...
user avatar
4 votes
0 answers
3k 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 [...
user avatar
  • 908
1 vote
1 answer
2k 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 ...
user avatar
2 votes
1 answer
2k 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 ...
user avatar
  • 1,039
2 votes
1 answer
2k 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 ...
user avatar
4 votes
1 answer
264 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 ...
user avatar
  • 61
1 vote
1 answer
582 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); ...
user avatar
-1 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
46 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 ...
user avatar
2 votes
1 answer
8k 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 ...
user avatar
1 vote
1 answer
788 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> ^~~~~...
user avatar
0 votes
0 answers
39 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. ...
user avatar
0 votes
1 answer
146 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?
user avatar
1 vote
1 answer
578 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 ...
user avatar
0 votes
1 answer
299 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 ...
user avatar
1 vote
0 answers
921 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/...
user avatar
  • 111
1 vote
2 answers
370 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 ...
user avatar
0 votes
0 answers
5k 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
  • 11
0 votes
1 answer
2k 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 ...
user avatar
  • 111
0 votes
0 answers
511 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 ...
user avatar
1 vote
1 answer
56 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 ...
user avatar
  • 6,749
0 votes
1 answer
2k 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 ...
user avatar
  • 161
0 votes
1 answer
133 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:
user avatar
  • 21
0 votes
1 answer
296 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 ...
user avatar
0 votes
0 answers
4k 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://...
user avatar
  • 101
0 votes
0 answers
189 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-...
user avatar