Tomcat on your home
Are you planning to expose your webserver(Tomcat) which is running in your home?
Then there are few things needed to make it work.
a. You need to request for a static IP from your Internet service provider.
Static IP is like Permanent Address, which is permanent for you, It does not change. i.e you would always be allocated the same IP address.
b. You might be behind the router, ( you need admin password for the router to configure forwarding. )
c. You need a Tomcat server running on your machine.
Assuming you know about installing tomcat on your machine. The problem is How to expose those to the outer world.
These are the few steps to achieve it.
1. Login to your router.
2. You have to configure your router to assing a permanent IP for your machine.
Generally
2. There would be an option called forwarding, there select the port number ( 80) and tell
Use iptables to redirect requests on port 80 to port 8080
sudo iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080
sudo iptables -t nat -I OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 8080
Comments