File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes 8080 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "8080" Watch "8080" New topic
Author

8080

siddharth das
Ranch Hand

Joined: Aug 17, 2007
Posts: 124
hello,
the url http://localhost:8080
i know apache web server runs on 80 port number by default.
what is the first 80(there are two 80's)
Thank you.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14194
    
  20

"8080" is port number 8080 instead of port 80. If you use this URL, you are making a request to a HTTP server running on port 8080 instead of port 80.

There are no two separate "80s". It's just the number 8080.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
siddharth das
Ranch Hand

Joined: Aug 17, 2007
Posts: 124
then what is the port number of telnet,is it 8023 or 23?
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18876
    
  40

Originally posted by siddharth das:
then what is the port number of telnet,is it 8023 or 23?


Well, telnet is at port 23... but I think you are missing the point.

You can put any service on any port that you want. In your case, someone at your site put the apache web server on 8080. If you have a problem with 8080, you need to talk to your adminstrator and ask why he/she did it.


Oops... forgot to mention. The default port for Apache Tomcat is 8080 (I believe). Is that the webserver that you are running?

Henry
[ September 10, 2007: Message edited by: Henry Wong ]

Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
You can put any service on any port that you want.

For example, my Wiki is a web server running on port 9454 ... which is WIKI on the phone.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Henry Wong:


Well, telnet is at port 23...


Wouldn't it be more correct that that's the *standard* port for telnet? You certainly could run telnet on a different port, too?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
GeeCON Prague 2014
 
subject: 8080