People who code: we want your input. Take the Survey

Questions tagged [sockets]

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

Filter by
Sorted by
Tagged with
0
votes
3answers
55 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 ...
0
votes
0answers
28 views

How to use numactl --membind correctly?

I'm trying to run a script test.py for 1 instance bound to 4 cpus of numa-node-1. numactl --physcpubind=24-27 --membind=1 python -u test.py The lscpu shows CPUs 24-27 bound to numa-node-1. I expected ...
1
vote
0answers
44 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 ...
1
vote
0answers
26 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 ...
0
votes
1answer
75 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 ...
0
votes
0answers
9 views

TCP Master and Slave Socket Open and Close

I have two device one of them Modbus master and another modbus slave.Modbus master working on windows PC. And it polling modbus read query and expects modbus response. They communicate succesfully ...
0
votes
1answer
256 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....
0
votes
0answers
20 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.
1
vote
0answers
120 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....
1
vote
0answers
21 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 ...
0
votes
0answers
137 views

Sending RTSP stream to ffmpeg instance behind NAT

I have two devices: A and B, which should exchange audio stream via Internet. So, I have one stream from A to B and a second stream from B to A. Another thing is that A has public IP address, B has ...
0
votes
0answers
27 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 ...
0
votes
1answer
97 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.
0
votes
0answers
25 views

PuTTy to act like “2 computers” for Networking project

I am doing java project practicing using java clients and servers with a TCP and socket connection, and I am required to use 2 computers to determine RTT and send data files back and forth. I don't ...
0
votes
0answers
47 views

Osx: remove unix socket

I am trying to delete Unix socket which was created by one of my go programs when I run the grep ps aux | grep /tmp/ics-service-organization-grpc.sock I will get details 1103 0.0 0.0 4258648 ...
0
votes
0answers
384 views

VNC over Unix Domain Socket won't start

I'm trying to set up a VNC server that will listen on a unix domain socket. but it fails without a clear error message. My end goal is to connect Websockify/NoVNC to the socket to avoid the VNC port ...
0
votes
1answer
120 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) ...
0
votes
0answers
21 views

Is extra Firewall Hardware needed?

My Client wants to build a Private Cloud for My application which communicates only via TLS 1.3 using FTPS protocol. He will be Port Forwarding my suggested range of ports only. Via Windows firewall ...
0
votes
1answer
262 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:...
0
votes
1answer
468 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 ...
0
votes
1answer
28 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, ...
2
votes
1answer
1k 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)....
1
vote
2answers
68 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'...
0
votes
0answers
1k 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 ...
2
votes
1answer
273 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 ...
0
votes
0answers
1k 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 <...
1
vote
3answers
213 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 ...
1
vote
1answer
304 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 ...
0
votes
1answer
55 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 ...
0
votes
0answers
38 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 ...
3
votes
1answer
602 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 ...
0
votes
0answers
315 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 ...
13
votes
1answer
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-...
0
votes
1answer
225 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 ...
1
vote
1answer
531 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 ...
0
votes
1answer
72 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# ...
0
votes
1answer
579 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 ...
0
votes
0answers
39 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 ...
0
votes
1answer
29 views

Informatica Dynamic Data Masking RoutePeer-2.serverData: Failed with: java.io.IOException: Connection reset by peer

We recently were working on a project that required using tableau with dynamic data masking service. Things all work fine till we try to extract a large table with approx. 20000000 records (about 10 ...
1
vote
0answers
2k views

failed: Error during WebSocket handshake: Unexpected response code: 400

I am using apache2 AWS server to deploy my project. My project is developed using NodeJS and ReactJS. For the last few days sever responds with this error, WebSocket connection to 'wss://staging....
2
votes
1answer
2k views

how to read UDP buffer size on windows 10?

I have a server application that will receive more than 200 udp packet concurrently (strings of max 64 bytes), for testing and performance purpose I want to check the UDP buffer in my server to check ...
1
vote
1answer
473 views

Communicate with Docker daemon on Windows

I want to use Docker API on Windows, but as far as I know, there are no socket files on Windows. On Linux, I can use /var/run/docker.sock, but how can I use Docker API on Windows?
1
vote
0answers
105 views

How can I use the “location of socket in memory” field in /proc/net/tcp

I'm working on a proxy for linux(C++) that, amongst other functions, keeps track of tcp connections and associates them with the process's pid. To do that, I get the inode in /proc/net/tcp and then ...
0
votes
0answers
514 views

Multiple applications using same multicast group on the same Windows host

I am a software engineer designing a distributed software, in which the startup procedure utilizes IP multicasting to discover its peers. The software itself is distributed as different executable ...
8
votes
1answer
7k views

How to expose Linux socket file from Docker container (MySQL, MariaDB, etc.) to host

Disclaimer: I am not looking for a way to configure MySQL/MariaDB to use TCP connections. I am aware of that option and the question is not about that aspect. I am having trouble binding a socket ...
0
votes
0answers
536 views

How does multi cpu system shares pci-express bus?

For a modern single-cpu system things are transparent: there is multicore cpu, where cores are talking via uncore functions (like L3 cache, shared on-die memory controller). Uncore does also all the ...
0
votes
1answer
193 views

Extended socket information from ss

Running the following command gives me extended socket information. $ss -tuen Netid State Recv-Q Send-Q Local Address:Port ...
2
votes
1answer
917 views

cannot start docker when using chroot

I am trying to build a custom distribution that runs docker. I am using kiwi framework to achieve that. Docker installation is done successfully during the build. The problem is that I want to load ...
1
vote
0answers
500 views

Communicate with Topshelf windows service running on a server

I have a Topshelf windows service running on a Windows Server and I want to communicate with it, start and stop it from a remote client app, and try to resume some data from "MyService.cs" that is ...
0
votes
0answers
1k views

How to have a value different from 0 in netstat's Send-Q column for a socket in the LISTEN state?

I am currently trying to solve a Capture The Flag challenge that involves trying to escalate privileges by taking advantage of an exploit in a bash script. The script first does the following to get ...

1
2 3 4 5 6