This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to change my  HostName ?" Watch "How to change my  HostName ?" New topic
Author

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.


Venki
http://saalram.com
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

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: http://aspose.com/file-tools
 
subject: How to change my HostName ?
 
Similar Threads
How to change my host name?
URL rewriting in Struts1
Picking up parameters in the URL
Yet another tomcat problem
Problem in execution of web application in Tomcat from Eclipse Europa