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 .…