File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes what is localhost Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "what is localhost" Watch "what is localhost" New topic
Author

what is localhost

samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
when we start apache tomcat server

http://localhost:8080/
i want to ask
what is localhost ?
is it the first program server is starting to initiate itself?
or its local machine name

i know we run server on port no 80(logical concept)
than why we write 8080

please help???
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Localhost is the name given to the local machine.
It's mapped to 127.0.0.1 in your machine's host file.

By default, Tomcat ships configured to run on port 8080.
This is most likely because it's first an app server and will often share a machine with a webserver (such as Apache httpd). You can configure Tomcat to run on port 80 by changing the port number in server.xml.

Note: On a Unix machine, only programs started by the root user can bind to ports below 1024. There are work arounds for this.
Search this forum to find them.
They've been discussed often here.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is localhost
 
Similar Threads
Unable to start JBoss 5
Unable to launch Tomcat from eclipse.
Using IPAddress and localhost
tomcat download
Tomcat problem