File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 9168

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!
I agree. Here's the link:
subject: How to change my HostName ?
It's not a secret anymore!