Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ 127.0.0.1 and localhost difference     - Graphing tool: Gnuplot (Linux)

- Linux Security (Linux)

- SQL Server automatic backup script (Database)

- OpenvSwitch 2.1.2 shell script to start and stop (Linux)

- How to use Xmanager Remote Desktop and VNC Log (Linux)

- Hadoop2.6.3 build clusters and the development of MapReduce WIN7 by Eclipse on Linux demo (Server)

- Keepalived achieve high availability Nginx Reverse Proxy (Server)

- Oracle index visible and hidden (visible / invisible) (Database)

- JavaScript property of checkbox.disabled (Programming)

- ORA-00845: MEMORY_TARGET not supported on this system Problem (Database)

- Ubuntu root user profiles (Programming)

- HTTPS Encryption Algorithm (Linux)

- FreeBSD install Gnome 3 Desktop (Linux)

- How to Start a Linux application running in the background using the terminal mode (Linux)

- Under CentOS yum install Nginx smooth switch mounted to Tengine (Server)

- How to adjust the system time CentOS (Linux)

- Java interface (Programming)

- Linux and Windows Security Topics (Linux)

- Vim plugin installation YouCompleteMe (Linux)

- Btrfs file system creation and their characteristics in Linux (Linux)

 
         
  127.0.0.1 and localhost difference
     
  Add Date : 2018-11-21      
         
         
         
  Today opened a new server, the code diversion of the past, even the database connection is not on, I looked at the original configuration from 127.0.0.1 to localhost on it. Consider the following two differences.

A lot of people will be exposed to this ip address 127.0.0.1. You might ask what is the address 127.0.0.1? In fact, 127.0.0.1 is a loopback address, referring to the local machine, usually used for testing. We used to run ping 127.0.0.1 local ip / tcp is not normal, as can ping can be used normally.

For most it is the practice of using localhost, in essence, is a pointer to the local IP address 127.0.0.1. There is a configuration file with 127.0.0.1 localhost bound together in the operating system. It can be understood as meaning the local host.

What is the difference between localhost and 127.0.0.1?

Some would say that I believe is the local ip, it has been said, with more than localhost 127.0.0.1, and can reduce the time to resolve.

It seems that people do not know there is a problem, in fact, the two are different.

localhost also called local, correct explanation is: the local server

127.0.0.1 in the correct interpretation of windows and other systems are: the local address (local server)

They parse through the machine's host file, windows will automatically resolves to 127.0.0.1 localhost

localhot (local) is not transmitted through the network card! This is important, it is not the network firewall and LAN-related restrictions.

127.0.0.1 is transmitted through the card, depending on the card, and are subject to network firewalls and network card related restrictions.

General Setup When the local service is the best use localhost, localhost will not resolve to ip, it will not take up network card, network resources.

Sometimes you can use localhost, but you can use 127.0.0.1 is not the case in this. Guess localhost access, the system with a native of the current user permission to access and use the ip when the machine is again equal access to the machine via the network, the network may be related to the user's permissions.
     
         
         
         
  More:      
 
- GitHub multiplayer co-development configuration (Linux)
- Install NetBeans IDE 8.0 on Ubuntu, Linux Mint, Elementary OS, and Debian (Linux)
- ogg start being given libnnz11.so: can not open shared object file (Database)
- Android Studio Personalization (Linux)
- Elasticsearch 2.20 Highlight (Server)
- C ++ Const breaking rules (Programming)
- Linux distributed message queue RocketMQ deployment and monitoring - Dual Master (Server)
- Python 2.7 installed on CentOS 6.5 (Linux)
- ORA-12537: TNS: connection closed error process (Database)
- Elaborate 10-point difference between the new and malloc (Programming)
- Open log in Hibernate (Programming)
- Swift acquaintance of values and references, the circular reference, Agent Precautions (Programming)
- Download Google Android source code under Ubuntu 4.4 (Linux)
- Linux rights management (Linux)
- How to choose the correct HTTP status code (Server)
- Why you should choose Python Programming (Programming)
- Dell R710 server disk recovery database one case (record) (Server)
- Linux disk virtualization (Linux)
- IronPython and C # to interact (Programming)
- apt-get install openstack pkg Troubleshooting (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.