The moose likes Servlets and the fly likes Port number 8080 or 80 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Port number 8080 or 80" Watch "Port number 8080 or 80" New topic

Port number 8080 or 80

Noah Carroll
Ranch Hand

Joined: Sep 20, 2000
Posts: 96
could someone please tell me what the significance of the ports numbers 8080 or 80 is. I don't understand it, and I have heard that if your port number is 8080 then it must be typed, and if it is 80 it is not necessary to type it. ???
I hope its helps, feel free to email me
Ashwin Desai
Ranch Hand

Joined: Jul 17, 2000
Posts: 124
Port number 80 is the default port for the webserver. Thus when you type in it is equivalent to
Ports 1-1024 are reserved for OS use. The rest can be used by the user for any applications. 8080 does not have any special significance.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
The only slight significance of 8080 is that it seems to be a popular choice for running an alternative web server on a site which already has one on 80. Many web servers and servlet containers come set up for port 8080 so that they stand less chance of clashing with an instaled server if there is one, and can be run as a non-root user on Unix/Linux systems.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Port number 8080 or 80
It's not a secret anymore!