Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Cant browse to localhost with iis 7 and 2 ips


09 Mar 2010   #1

Windows 7
 
 
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 System SpecsSystem Spec
.

09 Mar 2010   #2

 

what does your host file contain?
My System SpecsSystem Spec
09 Mar 2010   #3

Windows 7
 
 

# 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 System SpecsSystem Spec
.


09 Mar 2010   #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 System SpecsSystem Spec
09 Mar 2010   #5

Windows 7
 
 

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 System SpecsSystem Spec
10 Mar 2010   #6

Windows 7
 
 

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 System SpecsSystem Spec
10 Mar 2010   #7

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 System SpecsSystem Spec
11 Mar 2010   #8

Windows 7
 
 

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 System SpecsSystem Spec
12 Mar 2010   #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 System SpecsSystem Spec
Reply

 Cant browse to localhost with iis 7 and 2 ips




Thread Tools



Similar help and support threads for2: Cant browse to localhost with iis 7 and 2 ips
Thread Forum
Solved Apache: Localhost Not Working Network & Sharing
Solved Windows 7 x64 and localhost to web Network & Sharing
ODBC cannot connect to localhost Virtualization
localhost problems Network & Sharing
Localhost not working Network & Sharing
Localhost FTP For Dreamweaver Network & Sharing
ping localhost wrong ip Network & Sharing

Our Sites

Site Links

About Us

Find 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 05:36 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33