127.0.0.1 localhost and talk to the local IP 127.0.0.1 localhost and

Talk with 127.0.0.1 localhost

 

localhost means the local host, refer to this computer, it is to loop network interface standard host name, IP address corresponding to 127.0.0.1 , the local server accessible web project (http: // localhost).

 

They then what difference does it?

  localhost is not transmitted through the network card, network card, and not to limit the firewall; 127.0.0.1 is dependent on the card, and the card is limited by the firewall.

  With this machine the current user access permissions localhost; and with the IP access, network access to the host is to go, related to the network user right.

  Because it would not resolve to an IP access when using localhost, it will not take up network resources, generally with localhost more convenient.

 

Unable to access the local localhost how to do it?

  1. Open http://127.0.0.1/ see if you can access the IIS (Internet Information Services) of the default page, then the access IIS has been successfully opened, otherwise check whether IIS is installed and the machine is turned on;
  2. Start - command (cmd) - ping localhost, to see whether the data returned is 127.0.0.1, if it can be resolved then the localhost, or open the C: \ WINDOWS \ system32 \ drivers \ etc \ host file to see if there is anything 127.0 .0.1 localhost, and then add good to visit localhost;
  3. Try turning off the firewall on your computer, or to check for malicious plug on the computer;
  4. It is not the IIS uninstall, reinstall.

 

IP is 127.0.0.1 localhost points to this relationship can be amended?

  The answer is yes, you can set the Hosts file, the following methods are set in both the operating system.

  • Set in Windows:
  Both methods found localhost settings:
    1, open the next run drivers etc hosts file to see the 127.0.0.1 localhost;
    2, open C: \ WINDOWS \ system32 \ drivers \ etc \ host, with Notepad open the following:
      # Copyright (c) 1993-1999 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 (here not to display) # source server
      # 38.25.63.10 (here not to display) # x client host
      127.0.0.1localhost
      Bottom: 127.0.0.1 localhost, these two parameters can not be arbitrarily changed. The format is IP domain name space
  • In Linux setup:
  In the Linux system, the system administrator assigns the user a user name and an initial password when you create a new account for the user.
  In addition, Linux system to the computer assigns a host name.
  A host name for identifying a separate computer on the network (even if the user is not networked computers, should also have a host name). TurboLinux system gives the default host name: localhost.
  After the successful launch of the Linux system, the screen will prompt: localhost login, meaning that the system requires a user name, and then asked to enter a password. Otherwise it will be unable to log into the system, it can not be used

localhost means the local host, refer to this computer, it is to loop network interface standard host name, IP address corresponding to 127.0.0.1 , the local server accessible web project (http: // localhost).

 

They then what difference does it?

  localhost is not transmitted through the network card, network card, and not to limit the firewall; 127.0.0.1 is dependent on the card, and the card is limited by the firewall.

  With this machine the current user access permissions localhost; and with the IP access, network access to the host is to go, related to the network user right.

  Because it would not resolve to an IP access when using localhost, it will not take up network resources, generally with localhost more convenient.

 

Unable to access the local localhost how to do it?

  1. Open http://127.0.0.1/ see if you can access the IIS (Internet Information Services) of the default page, then the access IIS has been successfully opened, otherwise check whether IIS is installed and the machine is turned on;
  2. Start - command (cmd) - ping localhost, to see whether the data returned is 127.0.0.1, if it can be resolved then the localhost, or open the C: \ WINDOWS \ system32 \ drivers \ etc \ host file to see if there is anything 127.0 .0.1 localhost, and then add good to visit localhost;
  3. Try turning off the firewall on your computer, or to check for malicious plug on the computer;
  4. It is not the IIS uninstall, reinstall.

 

IP is 127.0.0.1 localhost points to this relationship can be amended?

  The answer is yes, you can set the Hosts file, the following methods are set in both the operating system.

  • Set in Windows:
  Both methods found localhost settings:
    1, open the next run drivers etc hosts file to see the 127.0.0.1 localhost;
    2, open C: \ WINDOWS \ system32 \ drivers \ etc \ host, with Notepad open the following:
      # Copyright (c) 1993-1999 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 (here not to display) # source server
      # 38.25.63.10 (here not to display) # x client host
      127.0.0.1localhost
      Bottom: 127.0.0.1 localhost, these two parameters can not be arbitrarily changed. The format is IP domain name space
  • In Linux setup:
  In the Linux system, the system administrator assigns the user a user name and an initial password when you create a new account for the user.
  In addition, Linux system to the computer assigns a host name.
  A host name for identifying a separate computer on the network (even if the user is not networked computers, should also have a host name). TurboLinux system gives the default host name: localhost.
  After the successful launch of the Linux system, the screen will prompt: localhost login, meaning that the system requires a user name, and then asked to enter a password. Otherwise it will be unable to log into the system, it can not be used

Guess you like

Origin www.cnblogs.com/guojing-anda/p/11027146.html