So I have my "Hello World" Java project, using Intellij Idea, tomcat 7 is running. OS Windows 7. When I go to http://localhost:8080/ from my PC, it works fine. Now, I want the world to see my creation. I have static ip address 109.251.63.15. I believe I opened 80 port in firewall properly
but I still get "page not found" when I go to 109.251.63.15. What I am doing wrong?
-
1You have to configure port forwarding on your router.– HarlandrakaCommented Feb 9, 2015 at 13:23
-
You have to configure port forwarding as @BackSlash says. Some routers though have a preloaded DDNS configuration. Look at some of the famous free Dynamic DNS.– NarmerCommented Feb 9, 2015 at 13:45
-
can't you simply make your tomcat listen to port 80?– geert3Commented Feb 9, 2015 at 14:02
-
Yes guys, it was port forwarding issue. I plugged Internet cable directly into PC, and it worked. Harlandraka, thanks for link about port forwarding.– KolosCommented Feb 15, 2015 at 19:55
Add a comment
|
1 Answer
1-Download ngrok.
2-Run your service.
3-Assuming your tomcat server listen on port 8080, run ngrok in command line with this command: ngrok.exe http 8080
Now, the client can run request with the url http://a9bb8562.ngrok.io/myapp.