aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 8707

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.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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 ?
Similar Threads
Picking up parameters in the URL
Yet another tomcat problem
Problem in execution of web application in Tomcat from Eclipse Europa
URL rewriting in Struts1
How to change my host name?