dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Localhost problem but I know it has to do with my router

  1. #1
    Join Date
    Jan 2009
    Location
    127.0.0.1
    Posts
    126

    Exclamation Localhost problem but I know it has to do with my router

    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.

    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.

  2. #2
    Join Date
    Sep 2008
    Location
    Akron, OH
    Posts
    1,143
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles