• 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

How do I let my IIS and Tomcat using the same port?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I want to know how the IIS and Tomcat run together, and using the same port. I have try this URL instruction,
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.html
I don't know where I set wrongly, It does not work. Can anyone help me on this.
Thanks
Hongwei
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The only way to run two servers on the same machine and listening to the same port, is to have them responding to different virtual hosts.
Virtual hosts can either be "physical", where the machine occupies two or more IP addresses and each server is bound to a separate IP address, or "name-based" where only one IP address is used, but the local DNS maps two or more names to the machine and each server is bound to a different name.
All of this is quite complicated, and the way most people run multiple servers on one machine is to give them different ports. The default port for HTTP is 80, but many "alternative" webservers, such as Tomcat, come set up to work with another port such as 8080, 8000 or whatever. Are you sure this is not a possibility for your application?
 
Frank Carver
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please note that The Java Ranch has a naming policy, described here and "whongwei" is not a valid name. Please choose one which meets the requirements soon, as this username will soon be switched off and you will no longer be able to post to Java Ranch using it.
Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic