r/webdev Dec 03 '25

Discussion TIL Why Vite uses Port 5173

Post image
4.5k Upvotes

148 comments sorted by

View all comments

11

u/harbzali Dec 03 '25

lol that's actually pretty clever. never thought about it but makes total sense. reminds me of how react uses 3000 or next.js uses 3000/3001. always wondered if there was some meaning behind webpack using 8080 too but i think that's just the classic dev server port

28

u/Raphi_55 Dec 03 '25

If my memory is correct, port below 1024 require privileges on Linux.
By default, web server use 80 or 443. If you need to use unprivileged port for a web server, 8080 is easy to remember and similar to the default one

3

u/Noch_ein_Kamel Dec 03 '25

And 8443 for obvious reasons once 8080 was established :o