Questions tagged [network-programming]

Programming associated with creating and managing networks as well as adding network connectivity to a (set of) programs.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
13 views

VPN and Local network communication problem

I have a router (Oxygen multiGateway HDI34201.N3A2UV) that uses native VPN to create a VPN network. My house network (local) has the following properties: Subnet: 192.168.1.0 Network mask: 255.255.255....
DimitrisB.'s user avatar
0 votes
0 answers
17 views

simple server clients connections where clients sends commands to server and receive replies

I am trying to make a simple interface to support a server that multiple clients can connect to, identify themselves send a command and receive a reply. Ideally the connection should remain such that ...
tbolind's user avatar
0 votes
0 answers
21 views

How can I find a application or service on the local network?

I have two sprig-boot applications running on two different computers within the same local network. I need to make a rest request from application 'A' to application 'B'. The computers can reboot, so ...
fckNewbee's user avatar
-1 votes
0 answers
12 views

How to configure communication betwean two routers [closed]

I am in dire need of help configurint routers to allow comunication. I have this network diagram: I need help to configure it so PC1 can ping PC2 and PC2 can ping PC1. This is the configuration I ...
mitas1c's user avatar
  • 303
0 votes
0 answers
13 views

unity lag while running to builds or two editors

So I am trying to test out multiplayer for my unity game. Anytime I run two builds, my fps in the unfocused build drops down to 20FPS which makes it exptremely hard to test stuff. Before starting the ...
Cody's user avatar
  • 1
0 votes
0 answers
40 views

Ad hoc application layer protocol in Qt

I want to create a client and server in Qt that communicate without http/https. To start, I looked up examples of http clients in Qt with the goal of removing the http parts and replacing them with my ...
Bobby's user avatar
  • 11
-1 votes
0 answers
11 views

How to accelerate the network of enterprise? [closed]

I'm currently facing an issue with the network speed in my company, and I'm seeking advice on how to improve it. The network seems to be slower than expected, affecting our day-to-day operations. I'm ...
Ogcloud's user avatar
0 votes
0 answers
9 views

Ansible playbook that scans switchports for dot1x configuration, if it does not exist to apply dot1x macro to port

I am putting together an ansible playbook that searches over a cisco switch and checks if all access ports have dot1x applied, if ports are missing the dot1x configuration to then apply the macro ...
coi's user avatar
  • 1
1 vote
3 answers
135 views

Finding block list from allowed list using python

We will pass a policy list to the function. Policy list contains a list of entities.We need to return list of entities that cannot talk to each other. Eg. policy1 = [['A'], ['B', 'C'], ['D']] This ...
rockstar's user avatar
-3 votes
2 answers
52 views

How I can send data via TCP outside of LAN? [closed]

Let's assume I have computer A and computer B. I want to send data from A to B using tcp protocol. A and B not in the same local network, but I know local IP of A and B in theirs networks and IP's of ...
awakair's user avatar
-1 votes
0 answers
37 views

How to implement multiple clients authenticating to a C++ server? [closed]

Currently, I am learning networking in C++ and I am writing a chat application. The idea is that upon a client connecting, the server checks if the client is registered: if yes, then it checks if the ...
Stanford Martinez's user avatar
1 vote
1 answer
44 views

"ping.send()" sometimes fails while "ping" in cmd always works

I have the following c# code: static void Main(string[] args) { IPAddress ip = IPAddress.Parse("10.131.88.160"); int timeout =800; Ping pinger = ...
Cenoce's user avatar
  • 13
0 votes
0 answers
51 views

readUTF and writeUTF greater than 65535

My mmorpg game server has a feature that has finally surpassed the 65535 length limit of sending "string updates" to the client. I was using the readUTF() and writeUTF() methods. I have ...
KisnardOnline's user avatar
0 votes
1 answer
41 views

fast conversion from edge list to adjacency matrix in python

What is the most efficient approach to convert an edge list into an adjacency matrix in Python? Below is my best shot so far, but still very slow for what I need. import string import random import ...
Francisco Zanartu's user avatar
0 votes
0 answers
23 views

Why my tracer is only working when i run the tracert?

I am currently studying Computer Networking using the Kurose and Ross book. While working on the traceroute code, I encountered no issues when testing it with both Wi-Fi and cable connections. The ...
Lipe's user avatar
  • 18
-1 votes
0 answers
24 views

Logging into basic auth website using python sockets

I am writing a server-client chatroom software. I'm using ngrok with basic auth to connect my server to the outside world. I don't know how to authenticate basic auth with socket to access my server. ...
Noah's user avatar
  • 1
0 votes
1 answer
59 views

How to find IP of a webserver in local network in Android using Java?

The context: The webserver is running on a ESP32. The Android app is being written in Java. The Android phone & ESP32 are in same local network. The minimum Android version is Lollipop (5.0). The ...
dev.tejasb's user avatar
0 votes
1 answer
50 views

Are SOAP messages that contain hyperlinks with the "http" protocol secure?

Recently I started to learn web services to use them in my applications. My objective is to minimise the risk of my SOAP requests being captured. As I understand, SOAP messages should be encrypted not ...
cyb3r-r4bb1t's user avatar
0 votes
0 answers
46 views

i am trying to encrypt send the data over with socket receving it and then decrypting it

i am trying to encrypt send the data over with socket receving it and then decrypting it but i get this error ValueError: Incorrect IV length (it must be 16 bytes long) I tried this i for my client it ...
Clashers Lab's user avatar
0 votes
0 answers
10 views

Python Server-Client Messaging

I'm trying to use Python sockets to build a server-client chat system. The problem I'm running into is that no messages are displayed until that machine sends a message itself, then it displays all ...
Daniel Bruton's user avatar
0 votes
0 answers
53 views

Could non-blocking socket using epoll and openssl possibly cause dead loop?

I want to know if the situation below could cause a dead loop: An non-blocking TCP connection was established between client and server, and the server is using epoll to receive its readable events ...
benrush's user avatar
  • 45
0 votes
0 answers
29 views

Omnet++ Logging Message/Packet Traffic

I'm running a simulation on Omnet++ 5.7, and I'd like to record the message/packet traffic of the simulation (as indicated in the picture- https://i.stack.imgur.com/SplvU.png). Despite trying the ...
mtskl's user avatar
  • 1
0 votes
0 answers
43 views

ECS Service connect could not resolve host

I’m trying to use service connect to give a dns to a task (service1) that is on a private subnet and other task (service2) calls using this dns from a public subnet, but when I try do a curl, I ...
Manoel Clemente's user avatar
-1 votes
0 answers
23 views

A question about using SRv6 in Linux ,the SRv6 End operation command does not take effect

I have a question about the use of SRv6 in Linux . I have tried for a long time but have not been able to solve it. Questions are as follows: I have the following four nodes in the public network ...
wenkai's user avatar
  • 1
-3 votes
1 answer
53 views

Create socket from hostname and port but ::select() indicates no data [closed]

I am trying to create a socket using a hostname and port. However, ::select() implies the socket has no data. Can someone please help? Self-contained example below (and Godbolt link). https://godbolt....
intrigued_66's user avatar
  • 16.3k
1 vote
0 answers
26 views

Proxy server packet sniffing and request forwarding using Socket Programming in C

I am a beginner in networks. I am looking to write a code for packet sniffer that runs on a proxy server. My objective is to fetch the IP address and filter out any blacklisted IP addresses. Now, I ...
MT 16's user avatar
  • 13
-2 votes
0 answers
59 views

Why does limiting number of open connections improve memory consumption?

I am comparing Go and Java implementations of a file upload API. The API will receive a file from multipart POST request and write it to a local directory. For Go (abbreviated): // In request handler.....
Hoa's user avatar
  • 7
-1 votes
0 answers
15 views

How can i get list of all networks on linux server using ansible_facts? I want alternate of "ip r | grep src | awk '{print$1}'

I am trying to cross check my configured network with the correct network from apiserver. some of my servers have more than 1 ips/ interfaces and networks. I got ip and network info by using "...
user22001010's user avatar
1 vote
0 answers
42 views

Cannot acces container behind traefik inside a podman's pod

After reading the docs, I understand that a podman pod makes the communication between containers easy since they can find each other via localhost. It can be summarized as in the picture below: I ...
Jzbach's user avatar
  • 356
0 votes
0 answers
14 views

Can I trigger an auto-negotiation of an interface using the ethtool userspace API with NETLINK sockets?

I would like to replicate the behavior of ethtool -r when auto-negotiation is active in my C++ code with NETLINK sockets. I search the CLI ethtool source code and I found that they use IOCTL sockets ...
jrmejiaa's user avatar
0 votes
1 answer
71 views

The text in TextBlock doesn't change

I have two programs: client (using WPF) and server (console app). The server can work with two threads. Client sends to server '1' or '2', then the server sends '3' or '4' to it. Client gets the ...
tridjam's user avatar
  • 21
-1 votes
1 answer
40 views

Can i scan the wi-fi network traffic using monitor mode?

I am making a wi-fi scanner that protects the network from threats, i need to scan all of the packets of all of the devices in the network(with monitor mode) using scapy, problem is that the packets ...
BronFan100's user avatar
0 votes
0 answers
65 views

Which data types should be used for Bytes sent in C++ socket/network programming?

I wonder which data type is the most suitable for representing bytes I send via Windows API winsock. I'm currently working on receiving and sending data frames on network sockets, as well as a CAN ...
le1nax's user avatar
  • 57
0 votes
0 answers
22 views

Isn't the network layer hop-to-hop (as opposed to end-to-end)?

Using logical connections makes it easier for us to think about the duty of each layer. As the figure shows, the duty of the application, transport, and network layers is end-to-end. However, the duty ...
philen's user avatar
  • 23
-1 votes
1 answer
40 views

Is an uncensorable network technically possible?

Is it possible to develop a micro-blogging platform that is impossible to censor by design? Of course it would have to be a distributed network architecture and storage. But if torrents and p2p did it,...
cldtech's user avatar
-1 votes
0 answers
84 views

listen 60000 ports in linux server

I have trouble listening to multiple ports in Linux. I want to listen on all the ports in this server from 20 to 63350. However, I can only listen on 4700 ports at a time. Here's how I did it. I'm ...
Z4R1's user avatar
  • 1
-3 votes
1 answer
33 views

Why is the python interpreter making the socket function uncallable in TCP socket connection? [closed]

I tried to create a TCP connection with the client and server on my machine but the program will not run being that the socket() function is not callable. The same applies to the client side. Please ...
Felix Njuguna's user avatar
0 votes
1 answer
82 views

SocketIO failed to handshake, dont know why

I'm trying to connect a socket in Cocos2dx with a server in Nodejs but it does not work as expected. Here is my code: In HelloWorldScene.h class HelloWorld : public cocos2d::Layer, public SocketIO::...
HƯNG LƯU CHẤN's user avatar
0 votes
0 answers
30 views

Container without port mapping is accessible

I have a small setup with traefik:v2.10-5 and pgadmin:7.8 in docker-compose and a custom subnet. Subnet: 172.18.0.0/16, gateway: 172.18.0.1 Traefik is at the fixed ipv4 172.18.0.2, with an entrypoint ...
Jzbach's user avatar
  • 356
0 votes
0 answers
31 views

Creating Fragmented UDP Packets in C Using Libnet

I need assistance in understanding how to implement fragmentation logic using Libnet for UDP packets. Despite setting the "More Fragments (MF)" flag, the packets are not being fragmented as ...
okncskn's user avatar
0 votes
0 answers
15 views

Availability of SOME/IP Fire and Forget mechanism implementation steps or code

I was trying to implement communication between two devices using vSOMEIP repo by fire and forget mechanism without service discovery. But, there is very less documentation and technically no code ...
Jenny B Joseph's user avatar
0 votes
1 answer
27 views

How to detect requested urls in Javascript or Python

I would like to know whether there's a javascript or python package that could help monitor the requests performed by an application. Let's say for example in my browser I click on a document. The ...
Laspeed's user avatar
  • 859
0 votes
0 answers
47 views

Trouble Connecting to Unity Relay and Lobby Service for Multiplayer Game on the Same Network

I'm relatively new to working with multiplayer games in Unity, and I've encountered an issue for which I couldn't find a solution. Here's the problem: I can successfully connect to Unity Relay and ...
Mustafa Gülsoy's user avatar
0 votes
0 answers
27 views

Python Scapy-based port scanner unable to scan localhost and VMs

I'm a beginner in programming and have been experimenting with a Python-based port scanner using Scapy. I've encountered an issue where my Scapy-based script fails to detect open ports on localhost or ...
bobz's user avatar
  • 1
1 vote
1 answer
86 views

Multiple calls with boost::asio::async_write

I am trying boost asio , the test code is based on asio-wrapper . Is there any way to prevent data concentration without relaying on std::this_thread::sleep_for in this case? This is the test code : #...
Ziri's user avatar
  • 732
1 vote
0 answers
31 views

OkHttp3 Debugging network latency via event listeners - connectionReleased event

My Java 8 application is using OkHttp3 to make N HTTP calls to an endpoint. Consider there's some work in a queue, and some M threads are dequeueing, parsing the work and firing HTTP calls. Around 40% ...
Mohammed Abbas Ali's user avatar
1 vote
0 answers
46 views

Different Bytes Received under windows and linux when running same .NET 6 application connected to SQL Server

During the analysis of some Prometheus metrics I found an interesting difference in the received network traffic whether an .NET 6 application runs under Linux (Ubuntu 22.04.3 LTS) or Windows (Windows ...
Mboe5000's user avatar
-1 votes
1 answer
69 views

How to detect which client pressed a button first on a webpage?

Context I'm trying to create a trivia website that can detect which user pressed a button first; my idea is that the first user who clicks the button gets to answer the trivia question. I don't really ...
Anony Mous's user avatar
1 vote
1 answer
48 views

Only receive 0 length ICMP packets from icmp.Packetconn

The main goal is to detect open UDP ports by sending data trough the ports and listening for incoming ICMP messages that the port is unreachable. For this the following Go function is used that runs ...
Thibault's user avatar
0 votes
0 answers
81 views

Set name and ip in Profinet device using C#

I would like to be able to set the name and IP address in the Profinet device from my application. Can anyone help me on this topic? Does anyone of you know if there is a ready-made library?
Jarek's user avatar
  • 307

1
2 3 4 5
227