I can run apache, php5, mysql 4.xxx locally, but I'm trying to make it so that anyone can enter my ip address and access the files. Any tutorials on how to do this? Or is a quick fix? I already port forwarded 80 to my box. Thanks.
That should be all, but if your ISP is like mine, they won't allow port 80 to be open. Try forwarding port 81 on your router to port 80 on your box. Then access:
12.34.567.8:81 from an external computer and see if it works.
If you can access it from http://localhost, then you can access it externally, providing it can get through firewall and such.
I can get to apache served pages with 192.168.0.3 in my browser, and I have 80 forwarded to .3 on my router control panel, yet I can't reach it on my ip address...
tcp 0 0 :::80 :::* LISTEN 1698/httpd
That seems healthy... right?
Since localhost works, 192.168.0.3 works, just not the network's ip address
Alright, so I realized that computers outside the network were able to use my ip address to get to the server, however I want to be able to use the external ip address too. I tried
in my /etc/hosts
file, but this did not work => connection was refused at my ip address.
Then how do I get a url to be directed to my ip? Can i go straight to the DNS, or do I have to use a service like goDaddy?
something like no-ip.com or dyndns.com is what you need. but it needs to be mapped to your network IP obviously, not your local IP. as dusty said, you might need to change the port if it's not working externally on 80. if it is, you're set, and you shouldn't need to add anything to /etc/hosts unless you want to use a name instead of a local IP.
The ip works for external computers, but from my own computer (which is the host), I can't access it with the external ip, only 192.168.0.3 - the local ip. I was hoping that I could map my external ip to my internal ip, through /etc/hosts, but it seems that only string names can be mapped to ip addresses.