• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

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?
 
Bartender
Posts: 20983
128
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.

David
 
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!