Category "networking"

Confusion with AF_INET, with SOCK_RAW as the socket type, V/S AF_PACKET, with SOCK_DGRAM and SOCK_RAW as the socket type

I am quite new to network programming and have been trying to wrap my head around this for quite sometime now. After going through numerous resources over the i

How can i count Get-SFTPChildItem folder size together?

I need help with my Project I'm trying to display the size of a folder called sh-modules but only thing I can achieve is displaying individual subfolder sizes..

NetworkServer is not active. Cannot spawn objects without an active server in Unity 3D

I am trying to implement a multiplayer feature in Unity3d. Its like a snake game, snake eats food and generate its part. I can successfully generate food and pa

Cancel all Previous Api call in Android - Retrofit - Using module

I have created below module in my android application. val appNetworkModule = module { // Dependency: OkHttpClient single { var okHttpClient=OkHttpClient.Bu

Why is future.get() always timing out for Volley RequestFuture?

I am trying to make a synchronous Volley networking request. I am using request futures to wait on a response, but the future.get() call always times out (no ma

preconnect vs dns-prefetch resource hints

https://www.w3.org/TR/resource-hints/ If I understand correctly, both are used to initiate an early connection to load resources faster at a later time. preco

Getting JSON content from a packet using Scapy with Python

I have a pcapng file that contains a little bit of traffic. One of the packets I am trying to print out is containing JSON data. If I open the packet up in Wire

IP tables TEE command changes source mac address

I am trying to forward/clone traffic from my host machine to my docker container using IPtables command. I am able to receive traffic inside my container via ip

Why a pod can't connect to on-premise network

I'm setting up a Kubernetes engine (cluster-version: "1.11") on GCP with Kubeflow installation script that deploy on "default" network and I setting up a Google

Copying file to live VM (KVM/libvirt)

Just wondering if there is any method to copy a file to a live VM created over KVM using libvirt tools. My objective is to assign a static IP address to VM with

Scapy send packets speed up in Windows

In Windows I need to send an NBNS name query packet (which uses UDP protocol), and I need to send 255 packets and get an answer for each. With Scapy it takes a

CIDR vs Classful subnetting

I was studying about Classful addressing with subnetting and Classless addressing but I am not able to clearly understand the difference/advantages between the

How does a browser know which response belongs to which request?

Suppose when we request a resource over HTTP, we get a response as shown below: GET / HTTP/1.1 Host: www.google.co.in HTTP/1.1 200 OK Date: Thu, 20 Apr 2017 1

How to connect to docker host from container on Windows 10 (Docker for Windows)

At which IP address can a docker container connect to its host on Docker for Windows (on Windows 10)? How do you find this IP address? Example: you have a serv

Socket Programming, Casting sockaddr_in to sockaddr. Why?

Here is a sample socket programming snippet from the client side. My question revolves around the type-casting that casted sockaddr_in into sockaddr. My questio

The network path was not found

I'm running my code and getting this error. But what does it mean? The network path was not found Description: An unhandled exception occurred during the

how to turn protocol number to name with python?

the protocol like tcp and udp is all represented by a number. import socket socket.getprotocobyname('tcp') the above code will return 6. How I can get the

Naming nodes in NS2

I'm simulating a network in NS2, but i'm having a problem naming the nodes. I'm naming them from 1 to 10 but when i start it, it shows nodes from 0 to 9 set ns

Could not get traffic stats of tunnel interface in Android 10 & 11

Accessing /proc/net/dev is restricted from Android 10 (API level 29). And no luck for ifconfig as well. I tried to use TrafficStats, in which we have restrictio

How to bind rsync to a specific interface?

I have a lot of interfaces configured in my server, each of which connect to a specific nic card and have a separate routing table. These interfaces can be iden