Win a copy of Svelte and Sapper in Action this week in the JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

localhost to www

Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been seeking resources for the steps or knowledge on how to move from a localhost of my Java-based application utilizing Tomcat to be able to be displayed on the world wide web. I will be using a purchased domain name. Are you able to refer me to resources that would show me the steps to accomplish such a thing as I am looking for?
Saloon Keeper
Posts: 22490
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Obtain a fixed (permanent) IP address. You can squeak by without one for amateur use (via dyndns and others), but your service level won't be as reliable.

2. Get the Domain name registered and installed on a Domain Name Server (third-parties will be happy to do this for a nominal fee).

3. Ensure that there is a clear path from the Internet to the server that has that fixed IP address.

4. Open the necessary firewall ports on all devices between the open Internet and the server software. This usually includes a firewall on the server machine itself.

For general Internet use, I recommend using a proxy server such as Apache httpd in front of Tomcat. That's because the "friendly" http ports (80 and 443) are privileged ports and can only be used by a server running with root privileges. Apache httpd starts up as root, then changes to a non-privileged user once the ports are opened. Tomcat cannot. So by proxying Apache port 80 to Tomcat port 8080 and Apache port 443 to Tomcat port 8443 (or using an apache-tomcat tunnel), you can have friendly ports and still maintain security.
David Starr
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Tim. You provide clear steps for me to focus/work upon. It has been an adventure thus far.

I appreciate this.

You know it is dark times when the trees riot. I think this tiny ad is their leader:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic