How does IPv4 Subnetting Work?

IP subnets exist to allow routers to choose appropriate destinations for packets. You can use IP subnets to break up larger networks for logical reasons (firewalling, etc), or physical need (smaller broadcast domains, etc). Simply put, though, IP routers use your IP subnets to make routing decisions. Understand how those decisions work, and you can … Read more

Level vs Edge Trigger Network Event Mechanisms

The short answer is, edge-triggered means that you get notified only when the event is detected (which takes place, conceptually, in an instant), while level-triggered means you get notified whenever the event is present (which will be true over a period of time). For example, in an edge-triggered system, if you want a notification to … Read more

Get local IP address

To get local Ip Address: To check if you’re connected or not: System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable();

How do I get Flask to run on port 80?

So it’s throwing up that error message because you have apache2 running on port 80. If this is for development, I would just leave it as it is on port 5000. If it’s for production either: Not Recommended Stop apache2 first; Not recommended as it states in the documentation: You can use the builtin server during development, but you … Read more

Regular expression that matches valid IPv6 addresses

I’m having trouble writing a regular expression that matches valid IPv6 addresses, including those in their compressed form (with :: or leading zeros omitted from each byte pair). Can someone suggest a regular expression that would fulfill the requirement? I’m considering expanding each byte pair and matching the result with a simpler regex.

UDP vs TCP, how much faster is it?

UDP is faster than TCP, and the simple reason is because its non-existent acknowledge packet (ACK) that permits a continuous packet stream, instead of TCP that acknowledges a set of packets, calculated by using the TCP window size and round-trip time (RTT). For more information, I recommend the simple, but very comprehensible Skullbox explanation (TCP … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)