This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How to change my  HostName ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to change my  HostName ?" Watch "How to change my  HostName ?" New topic

How to change my HostName ?

Venki Ananth
Ranch Hand

Joined: Dec 17, 2008
Posts: 32
An interesting doubt!!! I am just accessing my J2EE application using this url like "http://localhost(or ipaddress)/Myproject"

Is there anyway to change my host name without changing my system name ?
I like to change "http://newname/Myproject". Any other settings available on service side. I'm using Tomcat5.5 in NetBeans.

Joe Ess

Joined: Oct 29, 2001
Posts: 9137

You could probably map a name in your hosts file to resolve to your local IP. In order to have other computers recognize that name, you will have to set up a DNS server.

[How To Ask Questions On JavaRanch]
Venki Ananth
Ranch Hand

Joined: Dec 17, 2008
Posts: 32
Hello Joe!

Thanks for the reply! Worked well!
Have you checked out Aspose?
subject: How to change my HostName ?
It's not a secret anymore!