Menu

1 / 2

Why Does Vite Run on localhost:5173? It's Not Random!

DEV Community: react·Abhisek Roy·8 days ago
#OKH0EQDG
#devtoreact#devto#dev#vite#port
Long article (465 words) — no AI summary yet.
Reading 0:00
15s threshold

React project run on localhost:3000 .

Then you start a Vite project, and suddenly it's localhost:5173 . 🤔

Why such a random number? I finally looked it up, and it's not random at all.

🏢 First, what is a port?

Think of your computer as an apartment building .

In real life On your computer

The building localhost (your own machine)

A flat number The port

The person living there Your running app

So localhost:5173 simply means:

"Go to my building and knock on flat 5173 ."

🕵️ The secret hidden in 5173

Squint a little and read it like this:

Number Letter Why

5 V Roman numeral for 5

1 I Looks like I

7 T Looks like T

3 E A flipped E

5173 = VITE ⚡

It's like a personalised number plate .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.