WSL-2: Which ports are automatically forwarded?

When you run WSL-2, a machine like a vitural machin run on your window device. Windows will create a local network, same your LAN, and connect WLS-2 to this network. On your WSL2, you can run ip a | grep eth0, result look like: 5: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default … Read more

If TCP is connection oriented why do packets follow different paths?

You, my friend, are confusing the functionality of two different layers. TCP is connection oriented in the sense that there’s a connection establishment, between the two ends where they may negotiate different things like congestion-control mechanism among other things. The transport layer protocols’ general purpose is to provide process-to-process delivery meaning that it doesn’t know … Read more

Experiences with (free) embedded TCP / IP stacks? [closed]

I’ve used both uIP and lwIP extensively. uIP Great if youre only wanting something basic like a bootloader Small footprint. Uses polling so we’ve never got over 3kbit with it 🙁 No DHCP ‘out of the box’ Poor UDP support lwIP Fully interrupt driven so much faster (~ x10) Includes DHCP with failover AutoIP UDP … Read more

Strange behaviour of netcat with UDP

When nc is listening to a UDP socket, it ‘locks on’ to the source port and source IP of the first packet it receives. Check out this trace: socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 3 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 bind(3, {sa_family=AF_INET, sin_port=htons(10000), sin_addr=inet_addr(“127.0.0.1”)}, 16) = 0 recvfrom(3, “f\n”, 2048, MSG_PEEK, {sa_family=AF_INET, sin_port=htons(52832), sin_addr=inet_addr(“127.0.0.1”)}, [16]) … Read more

How to access Network panel on google chrome developer tools with selenium?

This possible via Selenium WebDriver. For this you should do the following: Download selenium language-specific client drivers from – http://docs.seleniumhq.org/download/ and add apropriate jar files to your project build path. To run a test with Chrome/Chromium you will also need chromdriver binary which you can download from – http://chromedriver.storage.googleapis.com/index.html Create a test case like this: … Read more

difference between a DNS zone and DNS domain [closed]

As explained here: Domain name servers store information about part of the domain name space called a zone. The name server is authoritative for a particular zone. A single name server can be authoritative for many zones. Understanding the difference between a zone and a domain is sometimes confusing. A zone is simply a portion … Read more

Vagrant: how to configure multiple NICs within a Vagrantfile?

Using Vagrant 1.6.1 and private networking with Virtualbox you can create multiple private ips just by repeating the config.vm.network definition: # Vagrantfile API/syntax version. Don’t touch unless you know what you’re doing! VAGRANTFILE_API_VERSION = “2” Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = “precise64” config.vm.network “private_network”, ip: “192.168.50.4” config.vm.network “private_network”, ip: “192.168.50.5” config.vm.network “private_network”, ip: “192.168.50.6” config.vm.network “private_network”, … Read more