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!
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.
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).]