Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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

Diff. Between 8080 and 80

 
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
 
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
 
Rancher
Posts: 3645
38
  • 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
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic