Tag: Networking

Browse all articles, tutorials, and guides about Networking

Guides

Posts

Networking
2025-08-30|7 min read

Ping Response: Request Timed Out vs Destination Host Unreachable

Understand the difference between ping timeout and destination unreachable errors, what they mean for network troubleshooting, and how to diagnose connectivity issues.

Networking
2025-07-21|7 min read

How to Free Up a TCP/IP Port on Linux, macOS, and Windows

Learn how to identify processes using a port and free it up by stopping the service, killing the process, or changing configuration across different operating systems.

Networking
2025-07-10|7 min read

How to Get a List of All Valid IP Addresses in a Local Network?

Discover active devices on your local network using tools like nmap, arp-scan, and native OS commands. Learn network scanning techniques for inventory management, security audits, and troubleshooting.

Docker
2025-06-24|7 min read

Forward Host Port to Docker Container

Learn how to map ports from your host machine to Docker containers using -p, expose services on specific interfaces, handle port conflicts, and dynamically add port forwarding to running containers.

Python
2025-06-18|7 min read

How do I Get Flask to Run on Port 80?

Running Flask on port 80 requires special permissions since port 80 is a privileged port. Learn the different approaches to running Flask on port 80, from using sudo to setting up reverse proxies with Nginx.

Networking
2025-06-12|8 min read

Can Two Different Sockets Share a TCP Port?

Understand how TCP port sharing works with SO_REUSEADDR and SO_REUSEPORT, when multiple sockets can bind to the same port, and the limitations you need to know.

Linux
2025-05-03|7 min read

Network Usage Top/Htop on Linux

Monitor real-time network bandwidth usage on Linux with tools like iftop, nethogs, nload, and bmon. Learn which processes are consuming bandwidth, track interface statistics, and identify network bottlenecks.

Networking
2025-05-03|8 min read

Why SCTP Is Not Widely Used Despite Its Technical Advantages

Explore why Stream Control Transmission Protocol (SCTP) remains niche despite offering features that improve on both TCP and UDP, including NAT issues, lack of OS support, and ecosystem inertia.

Docker
2025-04-27|7 min read

Exposing a Port on a Live Docker Container

Need to access a service running inside a Docker container, but forgot to expose the port? Learn your options for exposing ports on a running container, workarounds, and best practices for future-proof setups.

Docker
2025-04-25|9 min read

Connecting to PostgreSQL in a Docker Container from Outside

Expose PostgreSQL safely and connect from your host or another machine using Docker and Docker Compose. Covers port publishing, listen addresses, pg_hba.conf basics, and common troubleshooting.

Docker
2025-04-21|5 min

Connecting to Host Machine's Localhost from a Docker Container

Learn how to properly connect to services running on your host machine from within Docker containers

Docker
2025-04-19|7 min read

How to Get the IP Address of the Docker Host from Inside a Docker Container

Need your container to talk to the Docker host? Learn practical ways to discover the host's IP address from inside a container, with examples for Linux, macOS, and Windows.

Networking
2025-04-15|8 min read

How to Connect to Network Shares with Username and Password

Learn how to mount SMB/CIFS network shares with credentials on Linux, macOS, and Windows, including persistent mounts and secure credential storage.

Networking
2025-04-15|8 min read

Network Tools That Simulate Slow Network Connection

Test how your applications handle slow, lossy, or high-latency networks using simulation tools. Learn to use tc, comcast, clumsy, and Network Link Conditioner to throttle bandwidth and add delay for realistic testing.

Networking
2025-04-10|7 min read

What is the Difference Between Active and Passive FTP?

Active and passive FTP differ in how the data connection is established. Learn how each mode works, when to use them, and how they interact with firewalls and NAT.

Windows
2025-03-28|7 min read

How to Close TCP and UDP Ports via Windows Command Line

Learn how to close open ports on Windows using command-line tools. Find and terminate processes listening on ports, manage Windows Firewall rules, and stop services to free up ports.

Networking
2025-03-22|7 min read

How to Find an Available Port on Linux, macOS, and Windows

Learn multiple methods to find open ports on your system, from command-line tools like netstat and lsof to programmatic approaches in Python and Node.js.

Linux
2025-03-20|8 min read

Increasing the Maximum Number of TCP/IP Connections in Linux

Learn how to tune Linux kernel parameters to handle more TCP connections for high-traffic servers. Adjust file descriptors, TCP backlog, port ranges, and connection tracking limits to scale your applications.

Networking
2025-03-15|7 min read

How Do SO_REUSEADDR and SO_REUSEPORT Differ?

Understand the difference between SO_REUSEADDR and SO_REUSEPORT socket options, when to use each one, and how they solve different problems in network programming.

Networking
2025-02-18|7 min read

Close vs Shutdown Socket

Understanding the difference between close() and shutdown() for sockets is crucial for proper connection handling. Learn when to use each, how shutdown enables half-closed connections, and how close releases file descriptors.

Networking
2025-02-14|8 min read

UDP vs TCP: How Much Faster Is UDP Really?

Understanding the performance differences between UDP and TCP protocols, when speed matters, and why UDP isn't always the faster choice in real-world applications.

Networking
2025-02-06|8 min read

Capturing Mobile Phone Traffic on Wireshark

Learn how to capture and analyze network traffic from your mobile phone using Wireshark. Set up a proxy or WiFi hotspot to inspect HTTP/HTTPS requests, debug mobile apps, and understand what data your phone is sending.

SSH
2025-01-18|6 min read

How to Fix SSH "Could Not Resolve Hostname" Error

Troubleshoot and fix the SSH 'nodename nor servname provided, or not known' error with DNS checks, host file configuration, and SSH config debugging.

Networking
2025-01-01|8 min read

When is it Appropriate to Use UDP Instead of TCP?

UDP trades reliability for speed and simplicity. Learn when to choose UDP over TCP for real-time applications, gaming, streaming, and scenarios where low latency matters more than guaranteed delivery.

Kubernetes
2024-12-23|8 min read

Ingress vs Load Balancer in Kubernetes: When to Use Each

Learn the key differences between Kubernetes Ingress and LoadBalancer services, including use cases, cost implications, and implementation examples for optimal traffic routing.

Linux
2024-12-18|6 min read

How to Kill a Process Running on a Particular Port in Linux

Learn multiple methods to identify and terminate processes that are using specific ports on Linux systems using netstat, lsof, fuser, and ss commands.

Kubernetes
2024-12-16|9 min read

Difference Between ClusterIP, NodePort and LoadBalancer Service Types in Kubernetes

Understand the key differences between ClusterIP, NodePort, and LoadBalancer service types in Kubernetes, when to use each, and how they expose applications.

Linux
2024-12-15|5 min read

How to Check Which Process is Using a Specific Port from Command Line

Learn how to identify which processes are listening on specific ports using netstat, lsof, and ss commands across different operating systems.

Docker
2024-12-15|6 min read

Docker Compose: Understanding Ports vs Expose

Learn the key differences between ports and expose in Docker Compose, when to use each one, and how they affect container networking and security in your applications.

Git
2024-12-15|5 min read

How to Reset Local Git Branch to Match Remote Repository HEAD

Learn different methods to reset your local Git branch to exactly match the remote repository HEAD, including hard reset, fetch and reset, and when to use each approach safely.

Git
2024-12-14|5 min read

How to Reset or Revert a File to a Specific Revision in Git

Learn multiple ways to reset or revert a specific file to a previous version in Git, including using git checkout, git restore, and git show commands with practical examples.

Git
2024-12-13|5 min read

How to Push a New Local Branch to Remote Git Repository and Track It

Learn how to push a new local Git branch to a remote repository and set up tracking, including different methods for initial push, setting upstream branches, and managing branch relationships.

Git
2024-12-12|5 min read

How to Revert Git Repository to a Previous Commit Safely

Learn multiple safe methods to revert your Git repository to a previous commit, including using git revert, git reset, and git checkout with practical examples and safety considerations.

Docker
2024-12-10|8 min read

Communication Between Multiple Docker-Compose Projects

Learn how to enable communication between multiple Docker-Compose projects using shared networks and environment configurations.

SSH
2024-12-09|6 min read

How to Find the IP Address of an SSH Client

Learn multiple ways to identify the IP address of clients connected to your SSH server, from environment variables to logs and active connection monitoring.

Linux
2024-12-05|8 min read

How to Close Specific Ports on Linux Systems

Learn how to close and block specific ports on Linux using iptables, ufw, firewalld, and by stopping services. Secure your system by controlling port access.

Docker
2024-12-01|7 min read

What is the Difference Between "Expose" and "Publish" in Docker?

Understanding the difference between 'expose' and 'publish' in Docker is crucial for managing container networking effectively. Learn how these concepts work and when to use them.

Python
2024-11-28|9 min read

Lightweight Alternatives to Python Twisted for Async Networking

Explore modern, lightweight alternatives to Twisted for building asynchronous network applications in Python, including asyncio, aiohttp, Trio, and more.

Docker
2024-11-20|8 min read

How to Access Host Port from Docker Container

Learn how to access a host machine's port from a Docker container using network configurations and best practices.

Docker
2024-11-10|7 min read

How Can I Expose More Than One Port with Docker?

Learn how to expose multiple ports in Docker to enable complex containerized applications with multiple services.

Android
2024-11-05|8 min read

How to Detect Network Connection Type on Android

Learn how to detect WiFi, cellular, and other network types in Android apps using ConnectivityManager, NetworkCapabilities, and handle network changes with callbacks.

Networking
2024-10-22|9 min read

How to Simulate a Slow Internet Connection for Testing

Learn how to throttle network speed on Linux, macOS, and Windows using tc, Network Link Conditioner, and other tools to test application performance under poor network conditions.

Networking
2024-10-12|4 min read

Who is Listening on a Given TCP Port on Mac OS X?

Need to find out which process is using a specific port on your Mac? Here's how to check which application is listening on a TCP port using built-in macOS tools.

Docker
2024-10-11|5 min read

How to Get a Docker Container's IP Address from the Host

Learn how to find a Docker container's internal IP address from your host machine using simple Docker commands. This is useful for debugging, testing services, or container communication.

Python
2024-09-15|6 min read

Finding Local IP Addresses Using Python's stdlib

Learn how to find the local IP address of your machine using only Python's standard library. No third-party packages required.

Docker
2024-09-10|6 min read

Docker - Ubuntu - bash: ping: command not found [closed]

Resolve the 'ping: command not found' error in Ubuntu-based Docker containers by installing missing packages.

Networking
2024-09-01|7 min read

How to Get Your Local IP Address

Learn multiple methods to find your local IP address using command line tools, programming languages, and system utilities across different operating systems.

Networking
2024-08-12|5 min read

How to Find Which Process Is Listening on a Port in Windows

Need to know which application is using a specific TCP or UDP port on Windows? Here's how to check using netstat, tasklist, PowerShell, and Resource Monitor.

Python
2024-08-11|6 min read

What Is the Quickest Way to HTTP GET in Python?

Need to make a quick HTTP GET request in Python? Here's how to do it with standard libraries and third-party tools, including pros and tradeoffs.

Docker
2024-07-15|8 min read

How to Assign a Port Mapping to an Existing Docker Container

Learn how to assign a port mapping to an already running Docker container using practical workarounds and best practices.

Kubernetes
2024-06-15|7 min read

How Does kubectl port-forward Create a Connection?

Understand how kubectl port-forward works to create connections between your local machine and Kubernetes Pods.

Networking
2024-05-21|5 min read

What Is the Difference Between a Port and a Socket?

Ports and sockets are often mentioned together in networking, but they serve different roles. This guide breaks down what they are and how they work together.

Kubernetes
2024-04-25|7 min read

Difference Between targetPort and port in Kubernetes Service Definition

Understand the distinction between targetPort and port in Kubernetes Service definitions, and learn how they impact your application's networking.