Cant browse to localhost with iis 7 and 2 ips


  1. Posts : 21
    Windows 7
       #1

    Cant browse to localhost with iis 7 and 2 ips


    Hi Guys,

    Yesterday I was able to browse to http://localhost and see my iis webserver, today I installed an extra ip address onto my machine so I now have 192.168.10.251 and 192.168.10.252 and now when I browse to localhost I get a forbidden message?

    Does anyone know how to get my iis back when I browse to localhost?

    Any help much appreciated
    Regards
    Peter
      My Computer


  2. Posts : 1,426
    7 Pro
       #2

    what does your host file contain?
      My Computer


  3. Posts : 21
    Windows 7
    Thread Starter
       #3

    # Copyright (c) 1993-2009 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host

    # localhost name resolution is handled within DNS itself.
    #127.0.0.1 localhost
    #::1 localhost


    192.168.10.251 vls.pete.netlan.com
    192.168.10.251 upload.pete.netlan.com
    192.168.10.251 testdotnet.pete.videolibraryserver.com
    192.168.10.251 identity.pete.netlan.com
    192.168.10.252 spoon.pete.netlan.com
      My Computer


  4. Posts : 1,426
    7 Pro
       #4

    I believe the last entry "10.252" is your problem. Your local site is set normally to your original local ip address... so unless you're port forwarding between these to ip addresses 'per site', iis will have issues.
      My Computer


  5. Posts : 536
    Windows 7
       #5

    Extra IP on same NIC or seperate NIC? If 2 NICs do you have a gateway for each one? That can cause wierd issues. Try going to IIS manager and set the HTTP binding to one of the addresses. It defaults to any.
      My Computer


  6. Posts : 21
    Windows 7
    Thread Starter
       #6

    Hi I have 1 nic with 2 ip addresses assigned to it. So no I dont have a gateway for each one but I have set the gateway for the one nic I have. In the bindings for iis I have set

    type: http
    host name: localhost
    port: 80
    Ip Address: 192.168.10.251

    Still when I go to localhost I am getting a white screen with a big black 'forbidden' written on it.

    Funnlily enough when I ping localhost I get a reply from ::1:.... is that normal? This is an Ip v6 loopback address similar to 127.0.0.1 How does it work do I have to change it back to ipv4?

    Cheers for your help with this hopefully I can get mylocalhost working again.

    Regards
    Peter
      My Computer


  7. Posts : 536
    Windows 7
       #7

    So that is the default web site bindings. Do you want the default site to answer on either address or just the new site that you are setting up? You can set the binding for the new site manually to the second IP.
      My Computer


  8. Posts : 21
    Windows 7
    Thread Starter
       #8

    Hi I would like it so that when I browse to http://localhost I am taken to my default site(the one that iis ships with) and is now bound to 192.168.10.251. But at the moment locahost simply says forbidden. Is this possible? Sorry if im flogging a dead horse...
      My Computer


  9. Posts : 1,426
    7 Pro
       #9

    I would check to make sure your index.htm is in place properly. I thought by default the local host page was set to forbidden... which is where it seems to be pointing?
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:58.
Find Us