DEV Community

ajinm98
ajinm98

Posted on

Why do we use port 8080 for http in some webservers?

The reason is that
listening on any port less than 1024 requires root user privileges. This is a security risk,
because any attacker who manages to compromise your server would get root privileges too.

Top comments (1)

Collapse
 
jcubic profile image
Jakub T. Jankiewicz • Edited

This is not the real reson since some servers use 3000 and some 8000. The reason why 8080 is used is because it's easy to remember, since default HTTP port is 80. Just try to open dev.to:80