Tagged articles
5 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
May 14, 2025 · Fundamentals

Can TCP and UDP Share the Same Port? A Deep Dive into Port Mechanics

This article breaks down the interview question "Can TCP and UDP use the same port?" by examining protocol-level port spaces, client‑side TCP and UDP port sharing rules, server‑side TCP reuse with SO_REUSEADDR, and UDP reuse with SO_REUSEPORT, complete with code examples and practical implications.

Network programmingPort SharingSO_REUSEADDR
0 likes · 17 min read
Can TCP and UDP Share the Same Port? A Deep Dive into Port Mechanics
ITPUB
ITPUB
Mar 24, 2025 · Fundamentals

Can TCP and UDP Share the Same Port? Deep Dive into OS Port Management

This article explains why TCP and UDP can use the same numeric port, how client and server processes manage port sharing, and the role of socket options like SO_REUSEADDR and SO_REUSEPORT in enabling high‑availability and load‑balanced networking.

Port SharingTCPUDP
0 likes · 16 min read
Can TCP and UDP Share the Same Port? Deep Dive into OS Port Management
Architect
Architect
Aug 12, 2024 · Backend Development

How to Run Two SpringBoot Instances on the Same Port Seamlessly

When updating a SpringBoot application the old process must be stopped because the new one cannot bind to the same port, but by leveraging Tomcat's embedded container, ServletWebServerFactory, and dynamic port handling you can keep both processes alive and achieve zero‑downtime deployments.

Backend DevelopmentJavaPort Sharing
0 likes · 9 min read
How to Run Two SpringBoot Instances on the Same Port Seamlessly
Selected Java Interview Questions
Selected Java Interview Questions
Jul 26, 2024 · Backend Development

Zero‑Downtime SpringBoot Port Sharing: Running Two Instances on the Same Port

This article explains how to achieve seamless code updates for SpringBoot applications by allowing two instances to share the same port, detailing the underlying Tomcat embedding mechanism, DispatcherServlet handling, and providing a complete Java implementation with step‑by‑step instructions and test results.

BackendJavaPort Sharing
0 likes · 7 min read
Zero‑Downtime SpringBoot Port Sharing: Running Two Instances on the Same Port
Code Ape Tech Column
Code Ape Tech Column
Jul 23, 2024 · Backend Development

Zero‑Downtime SpringBoot Port Sharing: Design, Implementation, and Testing

This article explains how to enable two SpringBoot processes to share the same port for seamless code updates, covering the underlying servlet container mechanics, the required initialization flow, and providing a complete Java implementation with a demo that achieves near‑zero downtime during deployment.

Port SharingTomcatZero Downtime
0 likes · 9 min read
Zero‑Downtime SpringBoot Port Sharing: Design, Implementation, and Testing