0

I have made a maven web application, now i want to host it locally with tomcat so that other people within the same LAN can test it.

My ip adress is static and i have forwarded port 80, but if anyone other than me types in the static ip adress followed by the project name that is in the webapps folder it just can't seem to find the web page. I've seen many things on the internet like windows firewall could block the connection and i tried to fix it but nothing seems to work.

Does anyone have any suggestions that i can try?

ps. I am using Xampp to host it

Gimby
  • 5,095
  • 2
  • 35
  • 47
jscholten
  • 317
  • 2
  • 13
  • Disable both firewalls and antiviruses and try again, if it works, then you know where to fix things... – Fusseldieb Feb 09 '17 at 12:48
  • Also make sure to disable the firewall of your router/modem... BUT.... Don't forget to activate it later again, when you're done – Fusseldieb Feb 09 '17 at 12:48
  • 2
    Also check to which address you are binding your server (if you bind it only to localhost it won't be accessible through a network IP); check the documentation of the webserver about configuration. – SJuan76 Feb 09 '17 at 12:50
  • 1
    More specifically: bind the server on your internal IP address, don't bind on the localhost (127.0.0.1 / localhost). – Gimby Feb 09 '17 at 12:57
  • @SJuan76 How can i check if the right adress is bound? – jscholten Feb 09 '17 at 13:03
  • @Gimby how can i do that? – jscholten Feb 09 '17 at 13:04
  • To be honest port forwarding can be a nightmare depending on what router you are using, some routers needs some little extra effort to do it successfully. Usually the router manufacturer provide a manual on how to do it. – Enzokie Feb 09 '17 at 13:05
  • 2
    You do not need to forward a port in your router if that is only supposed to work on the same LAN. – Fildor Feb 09 '17 at 13:09

2 Answers2

0

See if u can ping your ip address, and if you are visible on the network, if not check your network settings.

MNJ
  • 172
  • 1
  • 1
  • 13
-1

Please try ngrok.

Simple tool to expose you localhost to the WWW. I have tried it and work perfect.

Xin Meng
  • 1,982
  • 3
  • 20
  • 32