Localhost ports and connection troubleshooting
Find the service behind a local address, check why it will not connect, and follow the setup guide for your stack. Localhost refers to the device making the request; start the service on that device before opening its URL.
Start with your problem
- Which port should I open?
Compare common ports and find the command that starts your service.
- Connection refused or address already in use?
Check the listening process before changing ports or stopping a service.
- What does this URL or connection string mean?
Parse its host, port, and path locally in your browser; this does not probe your computer.
Already running a web server on this computer? Open your local homepage: http://localhost
Common ports: see what each one is used for
:80 · :5173 · :4173 · :4321 · :8080
Setup and troubleshooting guides
Your public IP address
Loading…
Reported by ipify. This is your public network address, not the local port or LAN address of your development server.
Modern Dev Environments & Tools
Docker, Vite, reverse proxies, backends, and databases on localhost.
Beyond classic XAMPP/WAMP bundles, most teams today use Docker for services, Vite for frontend dev servers, and dedicated runtimes for APIs and databases — all reachable on localhost.
Default ports you will see often: 5173 (Vite), 3000 (NestJS/Next.js), 8000 (Laravel/Django), 5432 (PostgreSQL), 6379 (Redis).
See our port reference and conflict guides if something fails to start.
Popular dev stacks & tools:
Web Servers
A web server is software that uses HTTP (Hypertext Transfer Protocol) to respond to client requests and deliver web pages. It can also refer to the computer or device running that software.
Web servers present website content to the user's browser. Every site on the internet has a unique IP address. Apache is one of the most common web servers (open source, large market share); Microsoft IIS is another popular choice.
Most popular web servers:
- Apache HTTP Server
- NGINX
- Apache Tomcat
- Node.js
- Lighttpd
- Microsoft IIS
- Jetty
- Oracle iPlanet
- LiteSpeed
- Gunicorn
- Cherokee
- Tornado
- HTTP File Server
- Hiawatha
- Xitami
Which web servers do you think are the most popular? If you have recommendations not listed here, contact us to submit them later.
Web Server Stacks
These software bundles are used to run dynamic websites or servers.
In computing, a solution stack (or software stack) is a set of software subsystems or components needed to build a complete platform so applications can run without extra software.
A web stack is the collection of software used to build websites, typically including an operating system, programming language, database, and web server.
A classic example is the LAMP stack: Linux (OS), Apache (HTTP server), MySQL (database), and PHP (server-side language).
Classic local development bundles:
Modern Frontend Stacks
Run Node.js dev servers on localhost to preview SPAs, SSR, and full-stack apps.
Modern frontend development rarely relies on traditional LAMP/WAMP bundles alone. Developers run Node.js dev servers locally to preview single-page apps, SSR sites, or full-stack frameworks.
These stacks cover build tools (Vite), meta-frameworks (Next.js, Astro), routing (React Router), microfrontends, and more — all quick to start on localhost.
Default dev URLs are often http://localhost:3000 or http://localhost:5173; see each framework's docs for details.
Common frontend & full-stack frameworks:
Other suggested localhost ports
Common localhost ports (click the note to open the port guide):
- Access port localhost on localhost: http://localhost:80 — Default HTTP (Apache / Nginx)
- Access port localhost on localhost: http://localhost:4173 — Vite preview
- Access port localhost on localhost: http://localhost:4321 — Astro dev server
- Access port localhost on localhost: http://localhost:5173 — Vite dev server
- Access port localhost on localhost: http://localhost:3000 — Next.js / NestJS / Express
- Access port localhost on localhost: http://localhost:8080 — Tomcat / Spring Boot / alternate web
- Access port localhost on localhost: http://localhost:8081 — Expo Metro / alternate web
- Access port localhost on localhost: http://localhost:8000 — Django / php -S / FastAPI
- Access port localhost on localhost: http://localhost:8888 — MAMP / Jupyter, etc.
- Access port localhost on localhost: http://localhost:81 — Alternate HTTP
- Access port localhost on localhost: http://localhost:7080 — Alternate web
- Access port localhost on localhost: http://localhost:8889 — Alternate web
- Access port localhost on localhost: http://localhost:8890 — Alternate web
Localhost ports: 80, 4173, 4321, 5173… · Port conflict troubleshooting · Localhost URL parser
Developer Tools
Browser-based JSON, text, image, PDF utilities — no install required.
LocalHost Run online toolbox covering encoding, formatting, image processing, and more — all runs in the browser.
LocalHost Run tools
- Localhost URL parser — Explain localhost:4173, mongodb://…, /phpmyadmin, and more
Featured toolbox apps
- Base converter — Convert between binary, octal, decimal, and hex
- Prettify JSON — Format and beautify JSON code
- Validate JSON — Check JSON for syntax errors
- Base64 encode/decode — Encode or decode data with Base64
- URL encode — Quickly URL-escape a string
- Password generator — Generate secure random passwords
- Compress image — Reduce image file size while keeping reasonable quality