• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Diff. Between 8080 and 80

 
Ranch Hand
Posts: 58
Hibernate Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks alot Haaren
 
Bartender
Posts: 3904
43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic