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.
Being persecuted doesn't in any way prove your righteousness or your beliefs. Many people get persecuted because they are repugnant or annoying. Or just because they can be.
posted 6 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.
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
professionally read, modify and write PDF files from Java