Hello to all,
Recently i downloaded Apache2.2, i installed it and test it and it works fine.
Well, the problem is that httpd is running on 127.0.0.1 and not my external IP address.
I have a dsl modem, working as router. Lets say my router gives me dynamic IP, lets say 148.23.45.135.
I have Port Forwarding Enabled in 148.23.45.135:80 in my dsl/modem settings.
Apache works fine at http://127.0.0.1:80 , but not at http://148.23.45.135:80.
Anybody knows what else to do to run apache on my IP?
Thnx in advance !
You have missed out a level, 127.0.0.1 s the loopback address only available on your computer, 148.23.45.135 is your external IP address. However your computer has an address on your network 10.0.0.x would be common or 192.168.0.x. You can find you exact IP address on you network by starting a command prompt and using the command
ipconfig
or
ipconfig /all
You router should be forwarding to his address and any computer on your network should be able to find the Apache server at this address.
In you Apache httpd.conf file you should have a line something like
Listen 12.34.56.78:80
but using you computers network IP address.
The first step is get the Apache server viewable from you own local network, of course you would need 2 computers on that network to be sure.
Then once you have done that you can set up the port forward in your router.