Tag: Networking
Browse all articles, tutorials, and guides about Networking
Posts
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 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.
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.
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.
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.
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.
Communication Between Multiple Docker-Compose Projects
Learn how to enable communication between multiple Docker-Compose projects using shared networks and environment configurations.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 - Ubuntu - bash: ping: command not found [closed]
Resolve the 'ping: command not found' error in Ubuntu-based Docker containers by installing missing packages.
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.
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.
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.
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.
How Does kubectl port-forward Create a Connection?
Understand how kubectl port-forward works to create connections between your local machine and Kubernetes Pods.
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.
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.