Questions tagged [sockets]
The sockets tag has no usage guidance.
97
questions
534
votes
8
answers
952k
views
How to know what program is listening on a given port?
I suspect a program is listening on port 8000 on my machine.
When I run the following command, I get this error:
> python -m SimpleHTTPServer
# Lots of python error
socket.error: [Errno 98] ...
41
votes
2
answers
48k
views
What are socket files?
Recently, I started using tmux; I'm trying to use the pair programming feature in that software.
During the process a socket file was created.
My question is: what are socket files, how am I to open ...
11
votes
1
answer
7k
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
...
10
votes
4
answers
25k
views
How can I create a new socket in /dev?
I want to create a new socket file in /dev. Does the way to get it is adding a new rule to udev?
9
votes
5
answers
61k
views
Unable to start Apache on Ubuntu 12.10: no listening sockets available
I'm unable to start apache2 installed using apt-get. I'm getting the very same error on 2 separate Ubuntu 12.10 installations, one on my desktop PC, the other one running in VirtualBox:
michal@...
9
votes
1
answer
29k
views
Can't start MySQL server if the .sock file is changed in /etc/mysql/my.cnf
I have installed MySQL server 5.5 on Ubuntu 12.04.
I am trying to start MySQL server on a different sock file. By default MySQL runs on /var/run/mysqld/mysqld.sock.
I am trying to run the same server ...
8
votes
1
answer
69k
views
how to stop socket with linux command?
how to stop socket in linux :
socket ==>
root@root:/home/aa/test# netstat | grep 3966
tcp 0 0 server:3966 server:57004 TIME_WAIT
thank
7
votes
3
answers
12k
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 ...
4
votes
1
answer
399
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 ...
4
votes
0
answers
5k
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
[...
4
votes
0
answers
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 ...
4
votes
0
answers
3k
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 ...
3
votes
2
answers
5k
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 ...
3
votes
2
answers
3k
views
postgresql broken after 14.04 despite succesful pg_upgrade
I'm running an Ubuntu VPS where i'm am upgrading to 14.04. everything has gone smoothly so far. Except the PostgreSQL migration from 9.1 to 9.3.
The server hosts a Django 1.6 site and the traceback ...
3
votes
1
answer
4k
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 ...
2
votes
1
answer
2k
views
How do I discover my socket type?
I want to upgrade my CPU, but Ubuntu's "About This Computer" window only gives me "Intel® Core™ i3 CPU 530 @ 2.93GHz × 4", so no information on the connector/socket type. So far, I've tried the ...
2
votes
1
answer
1k
views
How would I know if my OS is compromised?
I had opened a php folder from a friend's web host. I run it on mine to fix some bugs.
Then I tried attaching the code to be emailed and GMAIL stated that the attachment was infected by a virus.
Now ...
2
votes
1
answer
2k
views
Pipe an infinite stream to internal loop?
I've seen a lot of things about redirecting stdout to a TCP socket, but no real example of how to do it in practice, specifically when the output stream generated by the first "command" never ends.
...
2
votes
5
answers
11k
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 ...
2
votes
1
answer
3k
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 ...
2
votes
1
answer
22k
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 ...
2
votes
1
answer
3k
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 ...
2
votes
1
answer
9k
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
...
2
votes
1
answer
326
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 ...
2
votes
0
answers
454
views
How to allow an apparmor profile to create a unix socket
On Ubuntu kinetic, I get multiple DENIED operations by apparmor in /var/log/syslog such as:
operation="create" class="net" info="failed type and protocol match" error=-13 ...
2
votes
0
answers
450
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 --...
2
votes
0
answers
135
views
Concurrent Multipath Transfer over SCTP
I'm trying to run Concurrent Multipath Transfer over SCTP.
I have two machines running Ubuntu Server 10.04 LTS, and they have lksctp-tools 1.0.11+dfsg-1 installed
Does this version support CMT? if ...
2
votes
0
answers
365
views
Tiger: `rtm` is listening on socket XXXX
On my Ubuntu serve 12.04 LTS, Tiger is reporting a lot of stuffs like this:
OLD: --WARN-- [lin002i] The process `rtm' is listening on socket 60404 (UDP) on every interface.
NEW: --WARN-- [lin002i] ...
2
votes
1
answer
73
views
Socket communiction in absence of wired network connection
I am facing a strange issue on my Ubuntu (12.04.3 64 bit). I have a couple of C programs communicating (let's call them sender and receiver programs) through sockets. These work as expected when the ...
1
vote
1
answer
335
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 ...
1
vote
1
answer
66
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 ...
1
vote
1
answer
2k
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 ...
1
vote
1
answer
2k
views
How to know if socket server is working
I am creating a socket server using c, but the client will be an arduino board so i would like to know if there is a way to be testing my code without the client since the arduino is yet to arrive.
1
vote
1
answer
458
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 ...
1
vote
1
answer
928
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
vote
1
answer
1k
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>
^~~~~...
1
vote
1
answer
871
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 ...
1
vote
1
answer
4k
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
1
answer
4k
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 ...
1
vote
1
answer
3k
views
Unable to connect to running ssh-agent
I connect to a long-running screen session on Ubuntu 12.04 server, and use that as a jump box for other things I connect to. As a result, I want a long-running ssh-agent on that machine. To that end, ...
1
vote
1
answer
5k
views
Make an accesible Python server
I'm using the Python library socket to create a program, and I want to be able to allow my friends to connect from their homes. I have the rest of the program running and it works great on the ...
1
vote
0
answers
170
views
MySQL does not create socket when launched at boot
After a reboot, mysqld is running, but no socket gets created and you cannot connect to the MySQL server:
# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/...
1
vote
0
answers
146
views
Why is there less latency and jitter when there is additional high bandwidth traffic between two computers with Ubuntu 22.04 installed on them?
I have two computers that are connected via an Ethernet cable with Ubuntu 22.04 installed on them. I have a client on computer A) which is sending UDP packets to a server on computer B) and I am ...
1
vote
1
answer
130
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 ...
1
vote
0
answers
2k
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 ...
1
vote
0
answers
181
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 ...
1
vote
1
answer
4k
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 ...
1
vote
0
answers
1k
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
2
answers
516
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 ...
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 ...