Ports & Networking
Localhost ports and networking: common dev ports (80, 8080, 3000, 5173, 4321, 4173), Vite/Astro preview, port conflicts, and loopback troubleshooting.
- Localhost HTTPS with mkcert: Certificates, Trust and Errors · Ports & Networking — Generate a development certificate for localhost and loopback IPs, configure Node or Vite HTTPS, and distinguish trust failures, name mismatches, and protocol errors.
- Access Localhost from Your Phone: LAN and WSL2 Troubleshooting · Ports & Networking — Check a development server through loopback, the computer’s LAN address, then a phone. Diagnose binding, firewall, frontend API URLs, and WSL2 networking.
- Localhost vs 127.0.0.1 vs ::1: Diagnose Connection Differences · Ports & Networking — Compare hostname resolution with IPv4 and IPv6 listeners using a small Node server, and diagnose why one loopback address works while another refuses connections.
- Localhost Ports: Find the Right Service and Fix Connection Errors · Ports & Networking — Identify common localhost ports, check the listening process on Windows, macOS or Linux, and distinguish connection refused, 404, HTTPS and Docker networking errors.
- Troubleshooting localhost Port Conflicts · Ports & Networking — Resolving issues with ports like localhost 80, 443, 3000, 5173 being occupied, preventing Apache, Vite, and Next.js from starting.