Skip to main content
Participant
December 27, 2011
Question

Windows 7 vs Localhost

  • December 27, 2011
  • 4 replies
  • 1850 views

I am having a problem with my localhost (127.0.0.1). I just purchased a new computer and installed the developer version of CF 9. Now I can't get to CF Administrator. I get the message "cannot be displayed". I have seen problems stating that localhost is not automatically started with Win 7. I tried to get in as admin and edit a file named hosts but that doesn't seem to work either. Any ideas?

    This topic has been closed for replies.

    4 replies

    RicJ111Author
    Participant
    December 29, 2011

    I have found that using the 64-bit Windows Explorer seems top resolve the problem. I made that one my default instead of the 32-bit version.

    Legend
    December 29, 2011

    I have seen the same issue but for me (and hopefully for you), the problem seems with resolving the name "localhost" to an IP address. Try using 127.0.0.1 instead.

    BKBK
    Community Expert
    Community Expert
    December 29, 2011

    RicJ111 wrote:

    I am having a problem with my localhost (127.0.0.1). I just purchased a new computer and installed the developer version of CF 9. Now I can't get to CF Administrator. I get the message "cannot be displayed". I have seen problems stating that localhost is not automatically started with Win 7. I tried to get in as admin and edit a file named hosts but that doesn't seem to work either. Any ideas?

    When you say CF 9, nothing surprises me. That is a first release, and so contains a lot of bugs. Upgrade to update 1 (CF 9.0.1) and apply the hot fixes.

    Community Expert
    December 28, 2011

    Need more info. What installation options did you choose for CF? Did you use the built-in web server, or connect it to IIS? If IIS, have you verified that IIS itself is working properly?

    There's no problem with "localhost" on Windows 7 that I'm aware of. You should be able to ping either localhost or 127.0.0.1 and have them resolve properly.

    If you want to edit the hosts file on Windows 7, you need to explicitly open the file as administrator. It's not enough to be logged in as an administrator, as UAC will prevent you from doing potentially destructive actions without explicit credentials or permission. If you right-click on a Command Prompt icon, and choose "Run as administrator", you can do whatever you need from that command prompt. That said, there's no need to edit your hosts file for localhost to resolve.

    Keep in mind that you may have IPv6 enabled by default, so localhost will probably resolve to both an IPv4 and IPv6 address. This can cause problems when enabling debugging.

    Dave Watts, CTO, Fig Leaf Software

    Dave Watts, Eidolon LLC
    RicJ111Author
    Participant
    December 28, 2011

    I used the built-in web server and it does ping. How can I check which port (8500? 8501?) that the install selected?

    Community Expert
    December 28, 2011

    How can I check which port (8500? 8501?) that the install selected?

    The easiest way would be to look at the icon created in your Start Menu after the install, and see where that goes. By default, if you install CF as a standalone server the built-in web server will use 8500, and if you install CF using the JRun multiserver option it'll use 8300. You can also identify what's using the port using netstat at the command line ("netstat -ano", followed by looking up the process ID in Task Manager).

    Dave Watts, CTO, Fig Leaf Software

    Dave Watts, Eidolon LLC