• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Any link between port 80 and 8080

 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As we all know that port 80 is the default port for HTTP connection and there are 0 to 1023 ports used in some purposes....so if we need a port other then we normally use a number more than 1024. In some cases i have found examples frequently using port 8080. Like ---- http://localhost:8080 .
Is it also a preferred port for some jobs. Any link between port 80 and 8080....
------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13077
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it is just one of those weird conventions that people tend to follow for things like Tomcat. You could be using any port above 1023.
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3820
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the "reasonable" reasons that I know of goes like this:
Tomcat is primarily a jsp/servlet engine and not a webserver and it is mainly used as an addon to industrial strength webservers like Apache/IIS etc. As 80 is a standard port for HTTP, you can't use it for tomcat but because it is coupled with webservers, it makes sense to use 8080 instead of some arbitrary no like 7804. Believe me, you won't remember that kind of no. the next time you switch on tomcat.

------------------
SCJP2, SCWCD Resources, Free Question A Day, Mock Exam Results and More!
www.jdiscuss.com
Get Certified, Guaranteed!
JQPlus - For SCJP2
JWebPlus - For SCWCD
JDevPlus - For SCJD
 
Sreenivasa Majji
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,
Accroding to JSP Insider page, you can use port 80 for Tomcat. This link http://www.jspinsider.com/faq/26.view says we can use port 80 for Tomcat.
/Sreenivasa Kumar Majji.
------------------
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3820
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sreenivasa, you "can" definitely use any port. When I said you cannot use port 80, it was in the context of something else. It is because 80 is reserved for WebServers.
There is no law/limitation that prohibits you to run a mail server on 80, a webserver on 25 and Tomcat on 21. But the point is you should not do that because these ports are standard ports meant to be used by webserver, smtp server and telnet respectively.
------------------
SCJP2, SCWCD Resources, Free Question A Day, Mock Exam Results and More!
www.jdiscuss.com
Get Certified, Guaranteed!
JQPlus - For SCJP2
JWebPlus - For SCWCD
JDevPlus - For SCJD
[This message has been edited by Paul Anil (edited October 28, 2001).]
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good reasoning Paul...thnx...
------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic