Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ and localhost difference     - CentOS 6.6 install Oracle 11gR2 database (Database)

- To setup NOTRACK and TRACK of conntrack in iptables (Linux)

- Linux network cut package is not fully defragment (Linux)

- 30 Practical Linux system administrators will learn the command (Linux)

- C ++ thread creates transmission parameters are changed (Programming)

- W and uptime command (Linux)

- How to manage the time and date at systemd Linux systems (Linux)

- Elasticsearch 2.20 Beginners: aggregation (Server)

- Linux development environment to build and use the directory structure and file --Linux (Linux)

- CentOS 6.4 RPM install MySQL-5.6.22-1 (Database)

- The oh-my-zsh into true my zsh (Linux)

- Traffic monitor Linux Python Version (Programming)

- Ubuntu 14.04 solved using MyEclipse 10.7 flash back (Linux)

- C ++ inheritance and derived (induction principle) (Programming)

- MYSQL root password for the database user passwords are weak attack analysis (Linux)

- Docker build their own private warehouses (Linux)

- C language programming entry - macro definitions and enum (Programming)

- To install Git on Ubuntu systems (Server)

- Report generation CPU, memory, and input and output ports with the sar command (Linux)

- Windows7 / 8 / 8.1 hard drive to install Ubuntu 14.04 dual system (Linux)

   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 to localhost on it. Consider the following two differences.

A lot of people will be exposed to this ip address You might ask what is the address In fact, is a loopback address, referring to the local machine, usually used for testing. We used to run ping 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 There is a configuration file with localhost bound together in the operating system. It can be understood as meaning the local host.

What is the difference between localhost and

Some would say that I believe is the local ip, it has been said, with more than localhost, 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 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 localhost

localhot (local) is not transmitted through the network card! This is important, it is not the network firewall and LAN-related restrictions. 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 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.
- Getting Started with Linux system to learn: how to install USB webcams come in raspberry (Linux)
- Java Foundation - The relationship between abstract classes and interfaces (Programming)
- Using Python multithreaded mistakes summary (Programming)
- CentOS6.6 ordinary users to use sudo command to borrow root user privileges (Linux)
- Installing Linux and Windows 10 dual system (Linux)
- AngularJS achieve picture upload feature (Programming)
- Specifies the open ports of the SUSE firewall settings (Linux)
- Ten minutes to find out the character set and character encoding (Linux)
- quotacheck command file can not be created aquota.user and aquota.group solutions (Linux)
- VSFTPD Security (Linux)
- Nginx request processing (Server)
- Python, and / or (Programming)
- MariaDB 10 Multi-source replication (Database)
- Linux Tutorial Share: How to sudo command to define the PATH environment variable (Linux)
- Use LVM partition on Ubuntu and easily adjust the snapshot (Linux)
- Use OpenWrt build WDS wireless network extension on V2 WHR-G300N (Linux)
- CentOS6.5 installation Docker (Linux)
- Installation and configuration under Linux SVN server - Backup - Recovery - Scheduled Tasks (Server)
- Learning UNIX good habits (Linux)
- 7 extremely dangerous Linux commands (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.