port - Windows 7 - Can't get response from local servers after restart - Always timeouts

06
2013-12
  • user1349542215

    After a long uptime and the installation of some Windows Updates no local server is working. My development system is a Windows 7 x64 Professional installation. I had a full working XAMPP set-up before. The included servers don't answer any more. Neither Apache nor MySQL. I tried also Nginx and a small self-written Java-Listener to open a local port. They aren't working, too. So I tried to ping to my PC from local network, but got no answer. The PC is definitively connected to the same network, ping in the other direction is working. Ping from the PC itself to 127.0.0.1 causes a "Generic failure". (The same for ::1, localhost ...)

    So what I have tried:

    • Scanned for Malware
    • Removed "Malwarebytes Anti Malware"
    • Restarting of the whole system and servers (multiple times...)
    • Tried to listen on 8080 - no answer
    • Reinstalled XAMPP in other paths and started from there
    • Started Apache and MySQL as process and as service (not at the same time!)
    • Checked .../drivers/etc/hosts file
    • Checked Apache's log files (no errors, only pid is logged)
    • Set Apache's logging level to 'debug'
    • Removed VMware, because this brought some new interfaces and was unused
    • Disabled all interfaces without the one which connects my PC to the internet
    • Checked all used ports and listening processes (with netstat)
    • Checked ipconfig
    • Checked all running processes and services (With taskmgr/ProcessExplorer)
    • Checked IPv4 routing table and compared with a clean windows installation
    • Checked connection with Chrome, Firefox, HeidiSQL, PuTTy and curl
    • Checked Windows event logs, nothing really special there
    • Windows Firewall
      • Enabled logging for dropped packages (all incoming packages will be dropped)
      • Switch off (no new logging output, but still connection timeouts, tried from control panel and manually from command line)
      • Switch on again (doesn't help)
      • Added rules for ports 80, 443, 3306, ... (doesn't help)
      • Checked that ingoing connections aren't generally blocked
      • Restarted Windows Firewall service manually

    Web browsing, Email and Instant Messaging is still working without restrictions. Has anybody any idea what can cause this behavior, what can I do against it, or which things I can test to get further information about the problem?


    Edit (same as in comment in first answer below):

    After @user970638 points me to digg further into the ping-problem, I tried the following steps:

    1. Disabled IPv6 in my NIC configuration.

    2. Installed Microsoft FixIt 50410 to prefer IPv4 before IPv6 because I saw when executing ping that localhost was resolved to ::1. (as seen here)

    3. Executed "netsh winsock reset" and reboot.

    After these steps, Apache and MySQL server were working again. But only for some hours. I didn't reboot again in this time or did any changes to the network configuration. It just stopped working.

  • Answers
  • Scandalist

    "Ping from the PC itself to 127.0.0.1 causes a generic error"

    That should tell you something right there. Try resetting your TCP/IP stack from an elevated command prompt:

    netsh int ip reset


  • Related Question

    wordpress - Unable to access localhost after starting Xampp
  • user7370

    I'm running Windows XP Professional SP2.

    A few days back I installed xampplite 1.7.1 and was able to access localhost and phpmyadmin through the browser. Today however it suddenly stopped working.

    In Firefox after I type http://localhost/ nothing happens - just a blank white screen.

    I removed all the files in the xampplite folders and reinstalled ver 1.7.1 again, but it was of no use. I then installed xampplite 1.7.2 (the latest), which I downloaded from the xampp website, but again this made no difference. Apache and MySQL are running however.

    I tried using a locally installed WordPress, as I have a theme ready and want to convert that design to WordPress, test it and start using it online.

    Running 'Port-check' on xampp control panel showed this:

    RESULT
    ------
    
    Service --     -- Port --      -- Status --
    ---------------------------------------------------
    Apache (HTTP) -- 80 -- C:\xampplite\apache\bin\httpd.exe
    
    Apache (WebDAV) -- 81 -- free
    
    Apache (HTTPS) -- 443 -- C:\xampplite\apache\bin\httpd.exe
    
    MySQL -- 3306 -- C:\xampplite\mysql\bin\mysqld.exe
    
    FileZilla (FTP) -- 21 -- free
    
    FileZilla (Admin) -- 14147 -- free
    
    Mercury (SMTP) -- 25 -- free
    
    Mercury (POP3) -- 110 -- free
    Mercury (IMAP) -- 143 -- free
    
    Mercury (HTTP) -- 2224 -- free
    
    Mercury (Finger) -- 79 -- free
    
    Mercury (PH) -- 105 -- free
    
    Mercury (PopPass) -- 106 -- free
    
    Tomcat (AJP/1.3) -- 8009 -- free
    
    Tomcat (HTTP) -- 8080 -- free
    
    ---------------------------------------------
    

    I also have Skype installed but it's not using port 80 - I had read this might be the cause of the issue, so I checked under Skype options and confirmed that the port is 65013.

    When I run file://C:/xampp/htdocs/index.php it says:

    Something is wrong with the XAMPP installation.

    Any ideas how I can fix this?


  • Related Answers
  • sudo work

    Check your hosts file in %WINDIR%\system32\drivers\etc\hosts and make sure that the following entry is there:

    127.0.0.1 localhost
    
  • Bertlacy

    Make sure that Mercury is running, from your port list it doesn't look like it is. That will keep the .php files from opening correctly, it is possible to just see a whitescreen. Make a simple html file and place it in the webservers root and try to access it with local host.

  • LifeSizeActionFigure

    You might need to be accessing http://localhost:8080 or some other port. I think 8080 is the default though.

  • billc.cn

    If you really saw a "blank white screen" then the setup is working, i.e. it's not a port problem, because otherwise your browser should give you an error.

    You should check the apache configuration files and your document root to see why a blank page is being served.

  • Michael K

    I often faced trouble with xampp while using skype. Even when it is not running on port 80, you may want to deactivate skype and try again. (a reboot may be required, too)