All Questions
Tagged with networking or network-programming
47,568 questions
0
votes
1
answer
52
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 (...
1
vote
1
answer
86
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 ...
2
votes
1
answer
113
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
55
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 ...
3
votes
2
answers
153
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
75
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
votes
1
answer
77
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
1
answer
192
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, ...
3
votes
1
answer
194
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
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
0
answers
117
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-...
3
votes
1
answer
128
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>
...
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 ...
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 ...
0
votes
0
answers
109
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
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
100
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, ...
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
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
1
answer
52
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
107
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, ...
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 ...
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 ...
0
votes
1
answer
59
views
Reproducing popart median joining network
I am making a median joining network to evaluate mutations among populations at the mitochondrion. I would like the topology of the output from the application popart to be preserved, and I would like ...
0
votes
0
answers
22
views
SharpPcap: Get First Packet
in device.OnPacketArrival, how do I catch only the first packet? TCP.
I'm building a simple port scanner based on the TCP 3-way handshake.
The code for device.OnPacketArrival:
if (tcp != null &&...