47,572 questions
2
votes
0
answers
59
views
Database connection failing as soon as the parent ssh shell is terminated, even though I backgrounded and disowned
Alright, so bear with me. This took me an entire day to dig into.
what I'm doing
I'm running a C program on a remote host over SSH. The program calls a local redis database IP and port and also 8.8.8....
-1
votes
0
answers
32
views
Mosquitto broker on Windows only accessible locally, cannot connect from LAN/ESP32 [duplicate]
Mosquitto only works locally, cannot connect from ESP32
I installed Mosquitto on Windows 10 and the broker works locally. I can publish and subscribe between terminals on the same machine without any ...
0
votes
0
answers
40
views
Android: Video streaming in WebView not working on certain devices (Yacine TV APK)
I am developing an Android app similar to Yacine TV that streams video content using a WebView. However, on some devices running Android 12 and 13, the video player shows a black screen while the ...
0
votes
0
answers
76
views
How to disable automatic radiotap header insertion in raw sockets?
I’m working on a tool using raw system sockets.
The tool needs to send packets with low-level protocols such as IEEE 802.1X.
When I inspect the packets in Wireshark, I notice that the radiotap header ...
Advice
1
vote
1
replies
66
views
Why don't we use HTTP for everything instead of SMTP?
We can fully emulate SMTP with current technology. Clearly, I can send a JSON containing the title, the body, and any other email information. The forwarding and replying mechanism can just be regular ...
0
votes
1
answer
58
views
WriteFile failure when networkshare is disconnected
I have a win32 app opening a log file on a network share using CreateFile and WriteFile (non overlapped) to write records. What I am seeing when the network share is lost, WriteFile reports an error (...
-4
votes
0
answers
76
views
Why is only my MySQL client on Windows 11 slow? [closed]
I have a brand new computer with Windows 11 and I am facing a performance issue with MySQL I do ovserve on any other machine on the network and I not know how to fix.
The MySQL server is running on a ...
1
vote
1
answer
94
views
HTTP Request to a Specific Website Fails with "Connection Timed Out" in Code, but Works in Browser
I'm encountering a consistent
Connection timed out
error when my application, running on a local development server, tries to make HTTP requests to a specific external website. The site loads ...
Advice
0
votes
6
replies
187
views
The feasibility of creating a small-scope 3D multiplayer game using C and Vulkan
I come seeking advice.
I'm attempting to make a game with C and Vulkan (no engine). It will be low scope. It has a low-mid poly aesthetic, fairly involved mechanics, and will be multiplayer, ...
2
votes
1
answer
121
views
Sending raw packets back to host's networking stack
I'm writing a TCP/IP stack for embedded systems, but I wanted to test it on my host system.
Originally I tried with tap0 + a bridge. But I quickly realized it would make the most sense to bind to the ...
0
votes
0
answers
61
views
Socket TCP connection through Radmin (can't connect) in Console Application
I made a simple console messenger to test the possibility of connecting 2 or more computers for my game using RadminVpn+Sockets but its not working. I can connect to myself using my radmin ip but if I ...
0
votes
0
answers
61
views
How can I capture and inspect outgoing HTTP requests from a Flutter WebView or video player?
I'm developing a Flutter app that loads a web page containing an embedded video player.
When the page loads, the browser internally makes several HTTP requests (for example, .m3u8 or .ts files), but I ...
0
votes
0
answers
42
views
How to achieve complete read/write thread separation for BoringSSL using BIO APIs
I'm integrating BoringSSL into my networking library for secure communication. I've observed that both SSL_read() and SSL_write() operations can potentially trigger both read and write activities on ...
3
votes
2
answers
162
views
How to make system proxy settings apply to HttpClient.GetAsync() without restarting Windows?
We use the following function to test internet connectivity every 5 seconds. But in some part of the world, this function always returns false. Now, the problem is we can set a proxy server in Windows ...
0
votes
0
answers
71
views
C++ pcap ARP Spoofing Packet Issue: IP/MAC Addresses Not Recognized
I am working on an ARP spoofing project using C++ and the WinPcap library. I have an issue where two seemingly identical methods of constructing the ARP packet result in different behaviors in ...
0
votes
0
answers
80
views
Can a process read/write a TAP device file descriptor after changing network namespaces?
I am working on a C++ program on Linux that involves interacting with network namespaces (netns) and a TAP device.
My procedure is as follows:
My process starts in an initial network namespace (e.g., ...
1
vote
0
answers
28
views
Reusing socket which failed to connect with timeout seems bad - is it documented somewhere? [duplicate]
Briefly: is the requirement to re-create TCP socket after it failed (e.g. on timeout) documented in some official manual, guide etc?
In details:
Some code I stuck upon is faulty in the following way:
...
-1
votes
1
answer
80
views
Seastar: per-shard TCP listeners not binding or exiting silently on non-0 shards
I’m trying to start a per-shard TCP listener in Seastar, where each shard binds to its own port (6010 + shard_id). On shard 0, everything works — the listener binds and accepts connections fine. But ...
0
votes
0
answers
55
views
MQL5 SocketConnect fails with error 4014 connecting to local TCP server
I’m developing an MQL5 Expert Advisor that should connect to a local TCP server (127.0.0.1:5001).
The server is running and responds correctly to Telnet.
In MetaTrader, I added 127.0.0.1:5001 in ...
0
votes
1
answer
197
views
Decrypting data from stream without knowing data size
Assuming we know the key and the IV for the data we're getting from the stream, is it possible to decrypt it within stream? I encrypted the same message three times and then decrypted it all at once, ...
0
votes
1
answer
49
views
How to connect to Dask Gateway Server from inside a Docker container?
I have a method that connects my app to a Dask Gateway Server
def set_up_dask(dashboard=False, num_workers=4, min_workers=4, max_workers=50):
gateway = Gateway("http://127.0.0.1:8000")
...
3
votes
1
answer
196
views
Understanding socket() function args
I need to use socket() but the args given to the function make me confused.
I have to do an school exercice where I have to use socket for intercept ethernet frame (more specifically arp spoofing).
...
0
votes
0
answers
94
views
My transparent TCP/UDP proxy with NFQUEUE + WinDivert dont work
I have a transparent proxy that works by spoofing addresses and ports, but for some reason it's not working. On a Debian 12 amd64 server, I used iptables -t mangle -A PREROUTING -j NFQUEUE --queue-num ...
0
votes
0
answers
103
views
How to identify which CRC-16 variant is used in this binary protocol?
I'm analyzing a binary protocol captured via IRP_MJ_READ. Each message is 11 bytes, and I suspect the last 2 bytes are a CRC-16 value.Here’s an example of the message in hex:
00 02 c1 00 10 00 00 00 ...
1
vote
1
answer
132
views
Get tap device mac address
I'm creating a tap device using the tun/tap interface by opening /dev/net/tun. However, when I try to get the MAC address using the SIOCGIFHWADDR ioctl call I get the wrong MAC address. If I make the ...
1
vote
0
answers
119
views
Enable GSO on Ubuntu 22.04 LTS
I’m working with a Linux TUN device (MTU 65535) where I write jumbo TCP packets (10KB+), and my goal is for the kernel (via software GSO) or the NIC (via TSO if available) to segment them into MTU-...
0
votes
1
answer
102
views
Intermittent `java.net.SocketException: Broken pipe` during Android Multipart Upload - Client-Side Stream Corruption or Premature Close?
I'm grappling with a highly intermittent java.net.SocketException: Broken pipe error while uploading multiple images from my developemnt Android app using HttpURLConnection to a production Java server....
3
votes
1
answer
129
views
How to Shutdown the server using poll() Gracefully
I have written a database server and client, and i'm using a poll loop
#include <stdio.h>
#include <stdbool.h>
#include <getopt.h>
#include <stdlib.h>
#include <stdlib.h>
...
3
votes
1
answer
139
views
Why does recvfrom() constantly output -1 in my code?
I'm practicing in networking programming. Currently I'm trying to make a program that crafts a single ARP packet and receives the response. Further, I want to expand it to handle the whole subnet.
But,...
2
votes
0
answers
203
views
How do I connect to my own C server from another machine on same network? [closed]
I can connect a Unix server and client socket just fine, but only if they are on the same machine.
My code does not work even if they are running on separate machines connected to the same router.
To ...
0
votes
1
answer
102
views
Get IP address of interface as a 32-bit integer
I am trying to extract the IP address of a Linux interface as a 32 bit integer.
Similar to this question:
Get IP address of an interface on Linux
but unfortunately this question extracts it as a ...
1
vote
0
answers
260
views
UdpSocket drops packets with low read_timeout
I'm using Rust's std UdpSocket to send data from one socket to another one locally.
It all works fine if I set no read timeout or if I set a "big" read timeout like 10ms. Once I set the ...
1
vote
0
answers
57
views
Kernel module fails to compile with 'undefined symbol: fib_get_table' despite function being present
I'm writing a Linux kernel module that prints the routing tables using dmesg. To do this, I'm trying to use the fib_get_table function to access FIB (Forwarding Information Base) tables.
Here’s a ...
0
votes
0
answers
115
views
netsh int ip reset Errors during Reset of Network adapters
Tried to run this script in application env and just commands on their own in terminal.
public resetNetworkAdapter(): void {
// windows reported everything is OK for most of adapters,
// but ...
0
votes
0
answers
106
views
TimeoutError occured when using wandb.init
I used wandb.init and resulted in the error below.
wandb: Currently logged in as: MyWandbAccount (accountname) to https://api.wandb.ai. Use `wandb login --relogin` to force relogin
wandb: ERROR Run ...
0
votes
0
answers
36
views
Frontend service not able to resolve to backend service in docker network [duplicate]
My frontend in react is unable to resolve name 'backend' in python. I am using docker-compose. The docker-compose.yaml file is given below. What's wrong?
version: '3.8'
services:
# PostgreSQL ...
0
votes
1
answer
111
views
How can I handle multiple TCP clients concurrently in Node.js without blocking others?
I'm trying to build a lightweight TCP server in Node.js that can handle multiple clients concurrently without blocking any of them — and all of this in a single-threaded manner, staying true to Node....
0
votes
1
answer
101
views
Warning Signs in INET 4.5.4 with OMNeT++ 6.1 Despite Successful Build — Still Getting Runtime Errors
Title: Warning Signs in INET 4.5.4 with OMNeT++ 6.1 Despite Successful Build — Still Getting Runtime Errors
Hi everyone,
I’m working on a project using INET Framework version 4.5.4 with OMNeT++ 6.1, ...
1
vote
0
answers
98
views
Capture and reinject Infiniband packets over a bridge using AF_PACKET
I am trying to capture and re-inject packets sent over ib_send_bw (infiniband RDMA) over two linux machines. I am utilizing RoCEv2 so rxe0 is my virtual NIC on both machines that would allow RDMA to ...
2
votes
0
answers
52
views
sockets: cannot connect with more than a few sockets to a given client [closed]
Consider the following sample code:
#include <iostream>
#include <string>
#include <cstring>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#...
0
votes
1
answer
63
views
non-blocking `accept` return `EAGAIN` on connection burst
I observed weird behavior when performing non-blocking accept loop. When there are multiple connection requests in the queue, only the first accept attempt succeed. All subsequent attempt fail with ...
0
votes
0
answers
53
views
Problem With Receiving Data Using recv() call [duplicate]
client.cpp
#include <sys/socket.h>
#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <iostream>
#include <string.h>
#include <fcntl.h&...
0
votes
0
answers
66
views
How does the process of reading data from the recv buffer work?
I know that the send() and recv() will write and read data from sender buffer & receiver buffer which is limited in size.
That's way if we want to send big data like we want to send 200mb data ...
0
votes
1
answer
60
views
How to select what type of fields I should use in a protocol header
Getting into protocol development with Scapy, going through documentation and watching videos on Scapy but I'm a bit confused with field types. Let's assume something generic for a packet structure:
| ...
2
votes
1
answer
96
views
How to use async_read_some after async_read_until with same buffer?
I need to do async_read_until, after which I want to call async_read_some using the same boost::asio::streambuf that was used for async_read_until.
The reason why I want to use the same boost::asio::...
2
votes
1
answer
114
views
Cannot set TCP_MAXSEG in macos
I was writing a simple C server and experimenting with setsockopt, so I wrote the following:
int lsock = socket(AF_INET, SOCK_STREAM, 0);
int mss = 576;
if (setsockopt(lsock, IPPROTO_TCP, TCP_MAXSEG, ...
2
votes
0
answers
66
views
Inconsistencies in mDNS host in local network resolution across .NET APis
tl;dr Some .NET APIs are unable to resolve mDNS host in local network. Am I missing something, or is the API inconsistent?
I have a raspberry running in the local network. According to the docs, it ...
1
vote
0
answers
45
views
EPS32 IDF WiFi Mesh: Can my MESH_ROOT scan for Access Points
Is there a way for a MESH_ROOT to scan for Access points? I have read WiFi API functions should not be used while WiFi Mesh is active.
Is what I am trying to do below possible? Or maybe there is a ...
1
vote
1
answer
345
views
.NET MAUI Android: HttpClient POST requests are delayed/slow with multiple rapid requests (iOS works fine)
I'm building a .NET MAUI app that communicates with a local server by sending HTTP POST commands.
I have a class in a .NET library, and I use HttpClient to send requests. It works perfectly and ...
0
votes
0
answers
64
views
AF_XDP `xsk_socket__create` fails with "Bad address" on Intel i226 (igc driver)
Does the igc driver support AF_XDP TX at all — even in copy mode?
Has anyone successfully used AF_XDP with an Intel i225/i226 NIC using igc?
Would really appreciate confirmation, success stories, or ...