Click to See Complete Forum and Search --> : Localhost problem but I know it has to do with my router


spotted zebra
02-03-2012, 09:53 AM
ok where to begin...when i set up any type of locally deployed development environment, eg apache or iis, i have to force it to route to http://10.0.0.2/ instead of http://localhost/, which is usually the default.

I know the reason is my internet connection comes in through a Netgear router (if you need specifics i will provide them) but I don't understand all the nitty-gritty details and I would like to so it is easier for me to configure. :confused::confused::confused:

Ultimately I would like to not have to configure the new development environments for http://10.0.0.2/ at all but without understanding what is going on in the first place I cannot make an attempt at solving the problem.

I hope this makes some sort of sense. Please ask any and all questions, I will try to give descriptive and detailed answers.

Thanks.

cbVision
02-03-2012, 12:31 PM
You should be able to modify this in your "hosts" file.

/WINDOWS/system32/drivers/etc/hosts

Edit that file in your text editor.

It should look something like this:

127.0.0.1 localhost

If you want local host to route to 10.0.0.2 because of your router, you could change the IP.

Ex:

10.0.0.2 localhost


This tells your computer when you try to go to local host, you're really going to 10.0.0.2.