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
peterquiet

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
brady

 

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

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
brady

 

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
Desslok

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
peterquiet

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
Desslok

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
peterquiet

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
brady

 

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
Thread Forum
localhost is not working
I try to connect to my localhost via firefox, i even have the 127.0.0.1 localhost in my hosts file, and still does not connect. I was trying to configure a controller for JDownloader, and i need to check if my localhost works. http://i60.tinypic.com/6jh8ww.jpg Any help would be...
Network & Sharing
Windows 7 x64 and localhost to web
hey guys, I'm newbie in this forum! :P I using Windows 7 Home Pre x64 and XAMPP in my computer, also I sharing my website from my personal computer: Kaan Kölköy - Ana Sayfa ... So I sharing my website on a free domain but i want buy a domain, but I have some questions. 1 - Can I connect...
Network & Sharing
ODBC cannot connect to localhost
On a Win7Pro-32 system running in XP mode, I'm trying to use ODBC (v5.1.9) to connect to a MySQL db on localhost. Interestingly, when using a username with remote host privileges I am able to connect to a remote db - this tells me ODBC is installed and working properly. Yet when I try to connect...
Virtualization
Localhost not working
Hi lads, New here. The name is Dave. I'm hoping someone can help me out. When I try to view http://localhost , i get nothing . Page not found. I have WAMP server installed. I just can't seem to figure out whats wrong. I've restarted all the services in WAMP and everything but still,...
Network & Sharing
Localhost FTP For Dreamweaver
More problems I don't seem to be able to get my FTP localhost server going with Dreamweaver I have downloaded XAMPP & installed it its working ok I have followed many tutorial Video's on the subject But when I go to view the new site it doesn't show it I am using Wordpress now its...
Network & Sharing
ping localhost wrong ip
hello, when i ping "localhost" comes a ip like this "::1:".. but i want 127.0.0.1 for coding in xampp. i have disable the ipv6 in the connection settings but localhost says still "::1:". ps: sry for bad english, im form germany. ;)
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 19:12.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App