Tag: networking

Browse all articles, tutorials, and guides about networking

Guides

Posts

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

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.

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.

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.

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.