Cant browse to localhost with iis 7 and 2 ips

peterquiet

New member
Local time
7:58 PM
Messages
21
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 My Computer

At a glance

Windows 7
OS
Windows 7
what does your host file contain?
 

My Computer My Computer

At a glance

7 Pro
OS
7 Pro
# 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 My Computer

At a glance

Windows 7
OS
Windows 7
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 My Computer

At a glance

7 Pro
OS
7 Pro
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 My Computer

At a glance

Windows 7i5-7504GB DDR3 1600GT220
OS
Windows 7
CPU
i5-750
Motherboard
Asus
Memory
4GB DDR3 1600
Graphics Card(s)
GT220
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 My Computer

At a glance

Windows 7
OS
Windows 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 My Computer

At a glance

Windows 7i5-7504GB DDR3 1600GT220
OS
Windows 7
CPU
i5-750
Motherboard
Asus
Memory
4GB DDR3 1600
Graphics Card(s)
GT220
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 My Computer

At a glance

Windows 7
OS
Windows 7
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 My Computer

At a glance

7 Pro
OS
7 Pro
Back
Top