Questions tagged [sockets]

A communication end-point for networking, for CPUs please use [processor-socket]

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

How is an IP address assigned to a process in TCP?

When TCP connection is established between two sockets, suppose that there are multiple NICs in the computer, so which IP address will the socket bind [ or - which IP address will be passes into bind()...
user avatar
0 votes
1 answer
27 views

Why does a process have multiple IP address in VM Ware or Hyper-v

When a process in a VM (with multiple NICs) communicates with some other process on some other virtual machine (or maybe on the internet), it does it via a different IP address, at different times. ...
user avatar
0 votes
0 answers
17 views

Linux socket is not using the src-ip from the bind address

I have a single Linux machine with 3 interfaces, eth0, host1, and loopback. And I have an application that sends out packets at the loopback and routed out to host1. To achieve this, my application ...
user avatar
  • 227
10 votes
2 answers
2k views

What is non-networked Unix domain socket?

I am reading Unsecured docker daemons revealed It says Docker daemon creates a non-networked Unix domain socket at /var/run/docker.sock What does non-networked Unix domain socket denote?
user avatar
0 votes
0 answers
31 views

Inconsistent response time with socket communications

I have a test setup with two custom-made devices of the same type, Ethernet switch and industrial PC. The switch is Moxa EDS 405 and the PC is a relatively low spec machine with Atom 1.46 GHz CPU, 4 ...
user avatar
0 votes
1 answer
42 views

Why does Windows resolve all IPs of all NICs with the hostname?

I´m having diferents problems with TCP/IP aplications that works through HOSTNAME. The Server where this aplications are installed(WIN Server 2012) have 4 NICs and Windows,resolve his own hostname ...
user avatar
  • 1
0 votes
1 answer
52 views

Meaning of IPTABLE duplicate values

I'm new to IPTABLES and when I execute the following command /sbin/iptables --list -n | grep 16381 I could see multiple entries as shown below : ACCEPT tcp -- a.b.c.d 0.0.0.0/0 ...
user avatar
2 votes
2 answers
218 views

"Unable to connect to the MKS: Too many socket connect attempts" when trying to launch a virtual machine in VMware Workstation Pro 14.1.1

I am trying to launch a virtual machine in VMware Workstation Pro 14.1.1. Host: Windows 7 SP1 x64 Ultimate. Guest: Microsoft Windows 10. I get the error message "Unable to connect to the MKS: ...
user avatar
0 votes
0 answers
92 views

How to Port forward on a GPON HG6245N router?

I have a linux server running on a home wifi network, and I need to connect to this server via a sockets based client program over the internet. The router is a GPON HG2645N but I can't find the ...
user avatar
0 votes
0 answers
160 views

Keep alive SSL client connection with socat

I want to know if it possible to detect a dead connection with socat openssl client. I am establishing a reverse shell with socat this way: socat "openssl-connect:api.hoposhell.com:10000,verify=0,...
user avatar
0 votes
1 answer
43 views

Systemctl Socket Talking to the Wrong Process

I'm trying to run a Minecraft server on VM running Debian 10. I've set up the server to run as a service and am attempting to use a socket listening to a FIFO based on this question that last saw ...
user avatar
0 votes
1 answer
34 views

How can I identity which process is sending data to a certain host on Linux?

As per title, I want to figure out the process responsible for certain traffic. I can see the traffic in wireshark, but I don't know which process it is. Is there any straightforward way to do it? I'm ...
user avatar
1 vote
1 answer
195 views

How raw sockets work?

Recently I developed a packet sniffer in python using socket module. In order to do that, I created a socket of type raw. Then I started receiving and parsing packets. My assumption was, by default, ...
user avatar
0 votes
0 answers
59 views

How can I create a socket server, and access it from another network\country?

How can I create a socket server, and access it from another network\country? I create a server using java. I want to connect the server from another network (like an hotel's wi fi) How can I do that?
user avatar
0 votes
0 answers
106 views

"Socket operation on non socket" when running executables on virtfs on a Debian MIPS VM

Context On my Arch Linux x86_64 host, I'm running a Debian MIPS VM on Qemu with a 9pfs shared filesystem using the following script: qemu-system-mips \ -M malta \ -m 512 \ -hda hda.img \ ...
user avatar
-2 votes
1 answer
76 views

How to investigate why a computer stops a TCP connection?

I've just written this question on another StackExchange site, but I was advised to ask the same question here. I would like to broaden the question: how can I know why a host closes a TCP socket ...
user avatar
  • 1,438
2 votes
0 answers
493 views

Can apache httpd listen on a unix socket?

I would like httpd (Apache 2.4.x) to serve HTTP requests over a UNIX domain socket. The Listen directive doesn’t seem to allow for specifying sockets. Is there perhaps another (undocumented?, module?) ...
user avatar
  • 195
0 votes
1 answer
63 views

Address of a Transport layer?

In TCP/IP protocol stack following protocol level addresses exists: Data Link layer - MAC address Network layer - IP address Transport layer - ? Application layer - Socket address which is ...
user avatar
1 vote
0 answers
11 views

TCP server device for USB access readers

I have a BarCode reader that spits out data over a Virtual COM port (RS232 Serial) through a USB cable. I have a server running and managing a facility, and I need to read data coming off the BarCode ...
user avatar
  • 11
0 votes
3 answers
166 views

Connect a socket to another PC in same NAT

Hey I've got two machines on the same network. They get their IP info back from an external webserver. Same IP due to NAT but different ports locally. Hmm that's weird.. they can't socket up or even ...
user avatar
  • 11
1 vote
0 answers
336 views

WebSocket connections originating from local network all use same client-side port (instead of ephemeral) when connecting to local webserver - Why?

I set up a webserver on a virtual machine on my home desktop. I have my router forward several ports (80, 443, etc) to my desktop, when then forwards them via NAT to the virtual machine (see diagram ...
user avatar
  • 11
1 vote
0 answers
41 views

Bash: read from socket file descriptor returns always the same data instead of blocking

I have a postgres started like this: exec 3< <(su -l postgres -c "/usr/local/pgsql/bin/postmaster -p '$port' -d 3 -D '$backupDir' 2>&1 & echo \$!") This redirects all logs ...
user avatar
  • 243
0 votes
1 answer
694 views

Increase buffer size for a specific socket on Linux

I am using CentOS7 and I have to increase the send buffer size (SO_SNDBUF) on a socket listening on a specific port. The application that has the port opened does not natively support this. Few things ...
user avatar
1 vote
1 answer
823 views

Exit foreground script Powershell: script hangs and Ctrl+C doesn't work

I have a powershell script running as follows: > $client = New-Object System.Net.Sockets.TCPClient('x.x.x.x',443);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream....
user avatar
  • 135
0 votes
0 answers
29 views

How to create unix socket

I am installing HAProxy from source. My example conf file tries to configure a socket stats socket /var/lib/haproxy/stats level admin How can I create such a socket? I'm on CentOS 7.
user avatar
  • 727
1 vote
0 answers
296 views

systemd StandardOutput redirection does not work with a systemd socket

I have a systemd service like this (my-server.service): [Unit] Description=My Server After=syslog.target network-online.target my-server.socket [Service] Type=simple ExecStart=/usr/bin/java myserver....
user avatar
  • 111
1 vote
0 answers
31 views

understand ss -to4 output for a jdbc connection

My application connects to a database over JDBC, and performs a lot of sequential inserts. There is only 1 JDBC connection opened by the application. As the performance is not as expected, I started ...
user avatar
0 votes
0 answers
44 views

Why can't I access HTTP server running on my machine from outside the local network?

I'm running a HTTP server on my Ubuntu 20.04 on port 8000 using python3. I already did the port-fowarding on my router (and also tested by hosting a Minecraft server and asking a friend to join) but I ...
user avatar
0 votes
1 answer
188 views

Can I use a smart socket with an input voltage of AC 120V and plug it into a 220V outlet?

Using a Smart Socket Model SP10 Made by Teckin It's meant for use in the USA with 120V power outlets but it is being used in the Phillipines with 220V power outlets.
user avatar
0 votes
1 answer
229 views

Python sockets protocols have the same value

So i am reading this book and in chapter about packet sniffing i uses this s = socket.socket(AF_PACKET, SOCK_RAW, sock.htons(0x0800)) I looked up to which protocol has the value 8 since htons(0x0800) ...
user avatar
0 votes
1 answer
571 views

Using socat for SOCKET-SENDTO

I'm trying to use socat to send a raw packet to an ethernet interface, but I get "No such device or address". How should I be using socat? Usage: $ echo hi | sudo socat - SOCKET-SENDTO:17:3:0:...
user avatar
  • 111
0 votes
1 answer
831 views

how to solve “No if updown configuration found” for CAN bus interface Linux 18.4.4LTS

I am trying to get SocketCAN interface working. I've added the slcan0 adapter and trying to run candump slcan0 at a bit rate I am sure the CAN devices is running at. I dont see any data being printed ...
user avatar
  • 3
0 votes
1 answer
29 views

How does a cloud NAS manage to be accessed from the outside of a LAN through an app?

I have a cloud NAS within my home network and I can't figure out how it manages to be accessed from the outside through an app. How does the app always know at what address requests should be sent, ...
user avatar
  • 3
4 votes
1 answer
3k views

How can I know what is preventing my socket to bind to localhost:50060-50959

I am using this Python code to listen to a port on my Windows 10 system: import socket for port in (50059, 50060, 50959, 50960): try: print(socket.socket(socket.AF_INET, socket.SOCK_STREAM)....
user avatar
  • 1,398
1 vote
2 answers
83 views

Why can I access nginx but not a C server socket in my server at home?

I have a Debian server machine at home with NGINX. Right now it is only serving the default index.html that installs along with nginx. I got myself a hostname in Dynu and got TLS certificates with Let'...
user avatar
  • 532
0 votes
0 answers
2k views

failed to load resource net::ERR_FILE_NOT_FOUND Nodejs

I am in a mind boggling problem, unable to decipher whether or not the way how Windows and Ubuntu manages files had anything to do with socket.io in particular. I obtained the failed to load resource ...
user avatar
  • 141
2 votes
1 answer
330 views

pfctl divert-socket in mac os?

I'm messing with divert sockets in OSX, and in order to capture any socket, I first need to set up a firewall redirection (divertion if you will): ipfw add divert 3282 tcp from any to any Something ...
user avatar
  • 21
0 votes
0 answers
2k views

How to run a socket.io app on apache?

I have a websocket service running on an Apache server. I read that you need to active two modules proxy_fcgi and proxy_wstunnel and reload Apache. (Done) This is my virtualhost file <...
user avatar
  • 101
1 vote
3 answers
292 views

Client to Client Communication bypass Firewall?

I have got a Raspberry Pi which is communicating via sockets with my PC. If I’m running this setup at home everything is working fine. But in my university I cant even ping the Raspberry Pi Would it ...
user avatar
1 vote
1 answer
455 views

What is the equivalent of "/tmp/.X11-unix/X0" on Windows when using things like Xming?

I want to know what exactly does the display name like :0.0 mean on Windows. Where does Xming place its listener socket for others to find? When I set the "Display location" in PuTTY, where does it go ...
user avatar
0 votes
1 answer
66 views

Unknown IceCast fails

I have a node.js script, which works in daemon mode. The script reads IceCast ogg stream itself (on the fly) and sends audio tags to website. But sometimes (exactly once per 2 days) the script fails ...
user avatar
0 votes
0 answers
47 views

GPS Device is sending junk data

I have a GPS device BW08C and when I configured with IP and protocol it is sending some raw junk on server. On other hand when I worked with other GPS device like LKGPS LK209 it gives me proper data ...
user avatar
3 votes
1 answer
863 views

What is the difference between [::] and * in binding sockets to IPv6 addresses?

I'm trying to investigate listening IPv6 sockets on an Ubuntu Server. I don't understand the difference between [::] and *. Two questions on my mind: Ary there any difference? If not, why they ...
user avatar
1 vote
0 answers
551 views

Multiple Processes listening on Port 22? How is this possible?

I have a Solaris 10 Server that has SSH enabled, I wanted to find out which specific process is responsible for opening the socket that listens for the port 22. I used the PFiles utility to loop over ...
user avatar
13 votes
1 answer
4k views

How does the OS tell whether an "Address is already in use"?

If my C program uses sockets, binds to localhost:9025, exchanges some data, gets manually killed and restarted, it sometimes crashes with the error being: Address already in use. All SE-...
user avatar
0 votes
1 answer
338 views

Is it safe to use one server fd in multiple epoll event loops in different threads?

I have one server fd, and several threads with epoll event loop in each of them (different epoll_fd's). Is it safe, if I would add this fd to every event loop? Is it true, that only one of them would ...
user avatar
1 vote
1 answer
693 views

How to make TCP program binding to any network interfaces?

I have a client / server network application using Boost ASIO TCP socket. The client is running on an embedded Linux system where multiple network interfaces available (WiFi, cellular, etc), at any ...
user avatar
0 votes
1 answer
98 views

XAMPP & C# Socket IPAdress questions

I'm working on a multiplayer game and I'd really like to bring it online. I'm a bit dumb when it comes to networking so please bear with me as I try to make heads and tails of this. I have a C# ...
user avatar
0 votes
1 answer
808 views

Stop 'Connection refused' errors in production

I recently began receiving error: [Errno 111] Connection refused errors from http://yandex.com/bots that crawl my website in production. I do not mind that they are crawling the site, but would rather ...
user avatar
  • 103
0 votes
0 answers
46 views

Connection failed error for client connected to server over wifi (TCP socket program in c)

Requirement : Need to send and receive message from two devices connected over wifi using TCP socket programming in c. Receiving connection failed for client socket. I am able to connect same client ...
user avatar
  • 1

1
2 3 4 5 6