简体   繁体   中英

How to deploy a java application on tomcat and access it online

I wanna deploy a java app on tomcat 9 to be accessible by typing an address like www.justanormalapp.stuff. Now I have a dedicated server machine on which i'm going to be installing tomcat and deploying the WAR app file but it can be only accessed locally through http://localhost:8080/myapp/ and I don't know how to make it accessible online.

I am not looking for some fancy domain name as anything free will do since the app is only going to be used for 3 - 6 months.

If all your PCs are not in the same net, you have to create an VPN to allow external computers access to your server.

So:

  1. Create your VPN .
  2. Configure VPN in the PCs where you want to access to your application
  3. Use ip:port/myapp

This should be enough.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM