Can I access my application from another computer if I leave the Tomcat running?
Yes it is possible provided both the machines are in network. localhost means accessing your machine by itself. If you are in LAN, you can try accessing it from other machine by replacing 'localhost' by your ip-adderss or machine name. For internet, you must have a dns registration to dump your code. (That is what a web-hosting company does.)