RT, explain it in your own words, don't move content online. Try to be concise, thank you.
2015-03-07 17:41The questioner is adopted by
Network connection is a 2-party participation, oneself is "internal address", others are "external address", so concise.
Another example, you use a browser to open Baidu website, your own IP address is the internal address, also known as "local address", Baidu server IP is the external address, also "remote address."
123456789101112 |
C:\Users\Administrator>
netstat
-n
Active Connections
Proto Local Address Foreign Address State
TCP 127.0.0.1:1110 127.0.0.1:52802 TIME_WAIT
TCP 192.168.1.10:49166 62.213.110.149:80 CLOSE_WAIT
TCP 192.168.1.10:49227 221.176.30.206:5201 ESTABLISHED
TCP 192.168.1.10:49245 192.168.1.10:1110 ESTABLISHED
TCP 192.168.1.10:49246 221.176.28.63:8080 ESTABLISHED
TCP 192.168.1.10:49612 62.128.100.213:21 ESTABLISHED
TCP 192.168.1.10:49621 62.128.100.213:21248 ESTABLISHED
|
Ask:
Why is it that sometimes the IP of two addresses is the same (for example: 127.0.0.1)? There is the IPv4 address and I ipconfig in Baidu search their IP is not the same, what is the reason? For example (own ping:192.168.1.106, Baidu Check: 121.204.218.202), so I should believe which is true?
Chase Answer:
The connection is connected to their own, our program can be connected to their own machine, such as you open the proxy server and then your browser to connect to the proxy server, another example is that Eclipse started a program to debug, the JVM starts a port, then the eclipse will be connected, the local address and external address are the IP of your machine.
About See the IP different this thing is very simple, because your 192.168 is the intranet address, your computer is not directly connected to the Internet, but by ADSL dialing, the ADSL IP address is called the public address, it is directly connected to the Internet, Baidu from the Internet can only see your public address, In network terminology, your router or ADSL is referred to as the gateway, which literally means the ancient gate.
Like Baidu itself is a business, it will apply for public address, and this address is fixed, in the ISP's record. Not like we dial the Internet every day.
Ask:
Weak weak ask that how to be your own computer directly connected to the Internet? Wifi?
Chase Answer:
Our individual users ' computers will not connect directly to the Internet, and they do not need to connect directly with the router.
Direct connection to the Internet requires the ISP (such as telecom unicom) to apply, get a fixed IP address, and then annual pay annual fee to use it, the cost is not cheap, only business people need to apply, such as your company to apply for broadband is to get a fixed public network address. Every enterprise has a lot of machines, each machine is directly connected to the Internet is impractical, not only the cost is high, and IP V4 address has not enough, we all need to use intranet address in the intranet, connected to the Internet through the gateway, which not only saves the cost is more security principle, We just need to set up a firewall on the router (acting as a gateway), and if each machine is connected directly to the Internet, it needs to be configured for each machine, which is complicated.
We can dial the Internet directly to the Internet, but can not use such devices as routers, must be computer direct dialing, ADSL out of the wire adapter.
There is basically no need to connect directly to the Internet, and it is safe to go through a gateway. Even Baidu's server is not directly connected to the Internet, but there are several "load balancing" front-mounted machine, the front of the computer directly connected to the Internet, to evenly distribute traffic, lest everyone at the same time access to a machine caused performance problems. In short, the interface we open to the Internet is called the public address, which is the address of the network card that is directly connected to the network cable sent by the ISP (Telecom or Unicom).
We use ADSL dial to connect the cable directly to the network card, without the router, and the network card IP is set to "Automatically assign IP address" It can get the public address from the ISP.
Now some ADSL itself comes with a simple built-in fool-style router, so it is always the router that comes with ADSL when the gateway.
Here your own computer network or directly connected to the Internet, just say that your PC through the gateway or proxy connection to the Internet, which does not affect your Internet, which is good for individual users, or the Internet can simply open your computer on the shared folder, what is seen by others.
-
Questioner evaluation
-
The answer is too detailed and perfect, perfect!.
Zeack
0.0.0.0 is a special IP address that refers to all the IP addresses of this machine. If an app binds to a port on 0.0.0.0, it means that the application is processed by the app whenever a request is destined for that port, regardless of the IP address. The general server is multi-nic.
From:http://zhidao.baidu.com/link?url=a8p2zkez01tg_zpsozoxzg14u09zr4hsnozct59endd6f_28pgp9ut44jpemazx4jhcrb9y_ 7oxdbz5tajt6xr2u8pn6-4xdhvf0_e
From:http://zhidao.baidu.com/link?url= 11mobomtg9iew0tbcm-un6nnkjt74tg-fcta2tuv90s3wbqlaip-hy9d7j5womfdfosrke2kxnvlimyjnugpik
What do the internal and external addresses in the "Go" netstat command represent separately?