Category "networking"

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

Image.network throw error even after defining errorBuilder in Flutter

I am facing some issues with loading images from URLs in Flutter. Here is my code: @override Widget build(BuildContext context) { return ClipRRect(

Receive UDP packets with python, packet loss

I'm having a lot of packet loss using UDP in python. I know I should use TCP if I don't want packet loss, but I don't have (full) controll over the sender. It'

How to capture packets for single docker container

There have many container running on the host. And I want to capture packets for the one container of these. Is there any way to do this?

How to create TCP tunnels with Pagekite

I am a complete beginner when it comes to networking and I am trying to set up a TCP tunnel on my machine using pagekite. I want to route all traffic from a TCP

How do I solve SecurityNegotiationException and InvalidCredentialException in WCF

So I've written a small game and wish for the game to be playable over the internet. I've been testing the game just through localhost using these configs: Cl

Netcat localhost command not working on WSL 2.0 Ubuntu

I'm using netcat to practise my network lessons' exercises. I need to access to my localhost port 7777 using the following command on the prompt: nc localhost 7

How to get link speed programmatically?

I am working on an app and it is almost finished except only one thing: I don't know how to get link speed and place it in the status bar.I am new to Java so if