• 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

Accessing Tomcat using etc\host

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can access Tomcat on my workstation through http://localhost:8080 on IE6 over Win2000ProSP2.
I found the etc\hosts file which maps localhost to 127.0.0.1.
I added Tomcat mapped to 127.0.0.1:8080 and tried:
http://Tomcat
This didn't work -- I get the usual:
The page cannot be displayed
Any ideas how I can do this.
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. Don't do that. 127.0.0.1 should ALWAYS be named "localhost". All sorts of things could break otherwise. In Windows, it may even be hardcoded and ignoring etc\hosts or lmhosts. On any event, unless Win2K has done something uniquely wierd, you can't attach a port ID to a host IP that way anyhow.
If you don't like "http://127.0.0.1:8080" or http://localhost:8080", you can always use the machine's LAN name (look in "My Network Places"). Or get someone to set you up with DNS. However, you STILL have to give the port name, since "http://anything" without a port means Port 80.
If you don't like 8080, shut down whatever webserver might be running there (e.g. IIS) and set up the Tomcat server.xml file to serve at Port 80. Either that, or set up the Port 80 server to pipe to Tomcat the way it's done with an Apache/Tomcat or IIS/Tomcat pairing.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic