Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When connected to a network (wia wifi), the webserver (IIS 7.5 on Windows7) on localhost takes up to 30sec to respond. Same for 127.0.0.1 or the internal ip (10.10.1.22). When disconnected - I get a the website from localhost loaded within 1sec. WTF?

As I modified routes for a VPN yesterday, I suppose I destroyed something in the routing table. But to me it all looks fine...Any ideas? I also tried adding "127.0.01 localhost" to the hosts file and disabling IPv6 without avail...Here is the routing table when connected:

Interface List

    11...88 53 2e 00 8d 4a ......Intel(R) Centrino(R) Advanced-N 6230
    1...........................Software Loopback Interface 1
    15...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface

IPv4 Route Table

Active Routes: Network Destination Netmask Gateway Interface Metric

    0.0.0.0          0.0.0.0        10.10.1.1       10.10.1.22    286
    10.10.1.0    255.255.255.0         On-link        10.10.1.22    286
    10.10.1.22  255.255.255.255         On-link        10.10.1.22    286
    10.10.1.255  255.255.255.255         On-link        10.10.1.22    286
    127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
    127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
    127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
    224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
    255.255.255.255  255.255.255.255         On-link         127.0.0.1    306

Persistent Routes:

Network Address Netmask Gateway Address Metric

    0.0.0.0          0.0.0.0        10.10.1.1  Default

IPv6 Route Table

Active Routes: If Metric Network Destination Gateway

    15     58 ::/0                     On-link
    1    306 ::1/128                  On-link
    15     58 2001::/32                On-link
    15    306 2001:0:5ef5:79fd:3cb9:3333:a488:5e63/128 On-link
    15    306 fe80::/64                On-link
    15    306 fe80::3cb9:3333:a488:5e63/128 On-link
    1    306 ff00::/8                 On-link
    15    306 ff00::/8                 On-link

Persistent Routes: None

share|improve this question
    
127.0.0.1 is defined as localhost in every version of Windows by default. What do you mean you defined it exactly? Try changing the routes on the VPN back to what they were. –  Ramhound Sep 4 '13 at 14:03
    
I found some suggestions to redundantly add the host name "localhost" pointing to the loopback IP 127.0.0.1 in the Windows\System32\drivers\etc\hosts file. But as the issue exists with browsing the IP 127.0.0.1 directly this can't be related... –  user14428 Sep 4 '13 at 15:28
    
I don't understand what 2 entries for the same ip address is suppose to do. The entry you describe already exists by default out of the box. –  Ramhound Sep 4 '13 at 15:47
    
by default localhost is commented out in the hosts file in Windows7. And some users with issues like mine porposed to uncomment it there...but it didn't help anyway. But i'm quite sure it must be an IP issue, not a NS issue... –  user14428 Sep 4 '13 at 17:35
    
My personal experience using a default installation is that 127.0.0.1 is defined as localhost and not commented. Besides there are many programs that assume localhost is defined –  Ramhound Sep 4 '13 at 17:40
show 3 more comments

1 Answer

Well actually the issue was not related to the routing table. The web application itself tried to query the Active Directory server in the Role Provider's GetRolesForUser(string username). Since the AD was not there when not connected via VPN - every request timed out and failed resulting in overall response times of about 30 sec. Interstingly, the AD request did not happen at all when the server was disconnected from ALL networks and therefore responded fast.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.