The difference between localhost and 127.0.0.1

Source: Internet
Author: User

localhost means the local server, and 127.0.0.1 is the native address, their relationship is through the hosts file in the operating system, the localhost resolves to 127.0.0.1. While the actual work, localhost is not through the network card transmission, so, it is not affected by Internet firewalls and the restrictions associated with the NIC, while the 127.0.0.1 to transmit data through the network card, it is necessary to rely on the network card.      This is their biggest difference. The general Setup program, Local service with localhost is the best, localhost will not be resolved to IP, and will not occupy network cards, networking resources. Sometimes it can be used with localhost, but it is in this case that it is not possible to use 127.0.0.1.

The difference between localhost and 127.0.0.1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.