Category "networking"

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

How to check the presence of the internet connection in Perl?

I have a simple script that verifies periodically (once every few seconds) if there is internet connectivity from that server. To be clear, it's not about to ch

How can I setup network traffic alerts on a Linux machine using Prometheus?

I am using Prometheus to monitor network traffic on Linux machines. I see several useful metrics like node_network_receive_bytes_total, node_network_transmit_by

How to Check if Axios Call Fails due to No Internet Connection?

I'm trying to figure out an accurate way to detect axios call failure due to no internet connection. Does axios call failure return a specific response object

What is P99 latency?

What does P99 latency represent? I keep hearing about this in discussions about an application's performance but couldn't find a resource online that would talk