How to make my local tomcat server accessible to www?

2

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 firewall port exception props
but I still get "page not found" when I go to 109.251.63.15. What I am doing wrong?

Kolos

Posted 2015-02-09T13:20:35.817

Reputation: 39

1

You have to configure port forwarding on your router.

– Harlandraka – 2015-02-09T13:23:49.473

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.

– None – 2015-02-09T13:45:26.990

can't you simply make your tomcat listen to port 80? – None – 2015-02-09T14:02:37.607

Yes guys, it was port forwarding issue. I plugged Internet cable directly into PC, and it worked. Harlandraka, thanks for link about port forwarding. – Kolos – 2015-02-15T19:55:09.207

Answers

0

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.

user977236

Posted 2015-02-09T13:20:35.817

Reputation: 1