• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Any link between port 80 and 8080

 
Ranch Hand
Posts: 2376
MySQL Database Spring 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!
 
Author and all-around good cowpoke
Posts: 13078
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.
 
Enthuware Software Support
Posts: 4450
41
  • 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
 
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
Posts: 4450
41
  • 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: 2376
MySQL Database Spring 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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic