eliogabalus
Programmer
I installed apache http server 2.4 on a Windows 7pro machine . I have a fixed IP address provided by ISP. I configured everything there was to configure (including module jk - I have to run an application struts2) and everything works wonderfully. Everything until I type in the browser "http: // localhost / appName". If I try to access from the outside with the real address does not work anymore!
I made every possible and imaginable attempt but here I summarize only what seem plausible.
- Nell'httpd.conf I set "Listen 80", "ServerName 192.168.0.104" (the local IP of the PC), and then in desperation even some Virtualhost with relative redirect ... but I've already forgotten!
- In advance, I gave the computer a fixed IP (since the router works with DHCP).
- then I forwarded port 80 on the router (on the IP of the PC)
- finally I opened the port 80 for protocol TCP (nay perhaps even for all) on the firewall (Norton, but also Windows although I think it is superfluous because Norton should turn it off)
It should work, right?
But no!
Needless to say, I double-checked everything over again (especially regarding the router forwarding configuration.. but it seems that it's right to do as I have done) and done the most varied and even bizarre attempts ... then I was assailed by a "atrocious" doubt : between the router and the network is also an ADSL modem: it is the "guilty"?
when I configured a fixed IP for the PC I choosen:
- as address IP, a "router format compliant" i.e. 192.168.0.104;
- as the subnet mask, a classical one: 255.255.255.0 (which in any case is the same for modem and router)
- as default gateway the one of the router (192.168.0.1)... or maybe I would have to give the "external" IP i.e. that of the modem? or even the IP address of the modem (i.e. 10.0.01)? Finally,
- as preferred and alternate DNS I put the real ones provided by the ISP...
where I'm wrong?
thank you i.a.!
I made every possible and imaginable attempt but here I summarize only what seem plausible.
- Nell'httpd.conf I set "Listen 80", "ServerName 192.168.0.104" (the local IP of the PC), and then in desperation even some Virtualhost with relative redirect ... but I've already forgotten!
- In advance, I gave the computer a fixed IP (since the router works with DHCP).
- then I forwarded port 80 on the router (on the IP of the PC)
- finally I opened the port 80 for protocol TCP (nay perhaps even for all) on the firewall (Norton, but also Windows although I think it is superfluous because Norton should turn it off)
It should work, right?
But no!
Needless to say, I double-checked everything over again (especially regarding the router forwarding configuration.. but it seems that it's right to do as I have done) and done the most varied and even bizarre attempts ... then I was assailed by a "atrocious" doubt : between the router and the network is also an ADSL modem: it is the "guilty"?
when I configured a fixed IP for the PC I choosen:
- as address IP, a "router format compliant" i.e. 192.168.0.104;
- as the subnet mask, a classical one: 255.255.255.0 (which in any case is the same for modem and router)
- as default gateway the one of the router (192.168.0.1)... or maybe I would have to give the "external" IP i.e. that of the modem? or even the IP address of the modem (i.e. 10.0.01)? Finally,
- as preferred and alternate DNS I put the real ones provided by the ISP...
where I'm wrong?
thank you i.a.!