Click to See Complete Forum and Search --> : hmm weird error with configuring server on localhost


Conor
04-16-2004, 10:24 PM
so i set up php, mysql, and apache on my localhost and it works great. I type in localhost/path./to/my/file and it takes me there, but when i type in my ip address it takes me to configuration for my computers router. Anyway around this?

chrismartz
04-16-2004, 10:54 PM
go to start >> run and type "inetmgr"....then when you get in there, click on your localhost and then on websites....a ip address should be configured and that'll be the one you should use.....good luck!

Conor
04-16-2004, 10:57 PM
it gave me the windows can not find javascript pop up

chrismartz
04-16-2004, 11:03 PM
are you using iis at all?

Conor
04-16-2004, 11:17 PM
no like i said, im using apache.

Conor
04-17-2004, 12:16 PM
any other ideas

PeOfEo
04-17-2004, 12:53 PM
You need to configure your router to send requests on port 80 to your computer's local ip address and change the router pass so that people from remote places cant getin on say port 81 which is not forwarded. This is not a server problem but a router problem. If you type in your local ip it should still work and if you type in that 127.0.0.1 (ip of local host) it should work too.

Conor
04-17-2004, 02:37 PM
thanks peo when i type in 127.0.0.1 it works. Is there anyway for me to find out my local ip?

ray326
04-17-2004, 10:58 PM
Originally posted by RefreshF5
thanks peo when i type in 127.0.0.1 it works. Is there anyway for me to find out my local ip? This is Windows, right? Open a DOS window and use ipconfig/all to see your current network setup.

PeOfEo
04-18-2004, 01:09 AM
yep ipconfig, and when you go your router type in
http:// <deault gateway here> into a web browser.

Conor
04-18-2004, 10:50 AM
when i try to open ipconfig it just like flashes for a second and goes away. I cant see anything. This is when i type it run

PeOfEo
04-18-2004, 11:22 AM
Originally posted by RefreshF5
when i try to open ipconfig it just like flashes for a second and goes away. I cant see anything. This is when i type it run
run --> type in 'command' --> type in 'ipconfig' in the prompt.

Conor
04-18-2004, 05:21 PM
when i type this http:// <deault gateway here> into my web browser, it says can not connect to http:// <deault gateway here>

PeOfEo
04-18-2004, 08:16 PM
nonono, go into ip config and get your default gateway and type it into where it says <default gateway here>

Conor
04-18-2004, 09:20 PM
yeah thats what i did but i just posted that instead of the actual numbers. Im not an idiot :p

ray326
04-18-2004, 09:42 PM
Is this at home or on a company backbone? Is the router one of the little router/switches you plug into a DSL or cable modem or is it a full up multiprotocol router like a big Cisco? The latter type are normally configured by telneting into them rather than through a web interface and you definitely don't want to go there.

Conor
04-19-2004, 05:54 AM
its a normal little linksys router sitting next to my come. Nothing for a big company or any company for that matter

ray326
04-19-2004, 11:54 PM
a normal little linksys router
Ok then you should be able to http://192.168.1.1 to get to the admin on the router. If you're running DHCP from the router then your IP *theoretically* will change sometimes; especially if you have more than one host on your LAN. What I do to play with a local host "name" is to enter my PC's host name associated with 127.0.0.1 into a hosts file in my windows directory. That way when I'm running a local web server I can use http://myhostname/ to get to it.