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?
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.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
posted 7 years ago
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