Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

question related to local host

 
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
normally we run our applications
<a href="http://<b rel="nofollow">localhost</b>:8080/EMS/jsp/Expense.jsp" target="_blank">http://localhost:8080/EMS/jsp/Expense.jsp

and other people in the network can acess my application by
<a href="http://<b rel="nofollow">ganesh</b>:8080/EMS/jsp/Expense.jsp" target="_blank">http://ganesh:8080/EMS/jsp/Expense.jsp

where ganesh is my machine name

is there is any way by which i can make any changes in tomcat and configure it in some way
so that instead of
<a href="http://<b rel="nofollow">ganesh</b>:8080/EMS/jsp/Expense.jsp" target="_blank">http://ganesh:8080/EMS/jsp/Expense.jsp
others(i.e people in the network)can acess my application like
<a href="http://<b rel="nofollow">Expense_management</b>/jsp/Expense.jsp" target="_blank">http://Expense_management/jsp/Expense.jsp
 
Ranch Hand
Posts: 3851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Whatever you write after http:// is the machine name (IP address) where server (application) is running. So if you are browsing from the same machine where server is running then you can give localhost there. If this is not the case then you will have to give IP address of machine where server is running.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are two changes in your desired URL.
The first is the machine name.
You would need to set up some kind of DNS within your subnet to change that.

The other is the port number.
That you can change. See your server's documentation.
If you're running Tomcat, the change can be made from tomcat/conf/server.xml.
 
reply
    Bookmark Topic Watch Topic
  • New Topic