• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Diff. Between 8080 and 80

 
Priyakant Charokar
Ranch Hand
Posts: 58
Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please tell me the difference between port addersses
8080 and 80

are these lines are same

http://localhost:80/index.html
&
http://localhost:8080/index.html

Thanks in advance
 
Wim van Haaren
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Priyakant Charokar:
Please tell me the difference between port addersses
8080 and 80

are these lines are same

http://localhost:80/index.html
&
http://localhost:8080/index.html

Thanks in advance


Hi,

These are definitely NOT the same. These refer to two different webservers running on localhost: one listening for requests on port 80 and the other on port 8080.

BTW, port 80 is the default port for HTTP and you can leave this out of the URL. 8080 on the other hand is a non-default port number and therefore cannot be left out of the url.
 
Priyakant Charokar
Ranch Hand
Posts: 58
Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks alot Haaren
 
Mikalai Zaikin
Ranch Hand
Posts: 3367
11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Priyakant Charokar:
Please tell me the difference between port addersses
8080 and 80

are these lines are same

http://localhost:80/index.html
&
http://localhost:8080/index.html

Thanks in advance


The reason that some applications use 8080 (7080, 9080) instead of 80 (traditional) is that on UNIX , port numbers below 1024 are reserved for super-user processes (can only be bound to by 'root'), that's why for OS compatibility some servers which runs on several platforms: Tomcat, WebSphere, WSAD's WebSphere Test Environment propose to use some ports that greater than 1024, but still have "80" inside : 7080, 8080, 9080. Good news is that you can run multiple servlets containers if they listen to different ports, for example: Tomcat on 8080 and WebSphere Express on 7080.

regards,
MZ
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic