In our daily work, we will need to query the host's current network information and the public Internet to see the IP address information, they are like a network of business cards, let us find each other.
How to get intranet and public network information under Windows
How do I get the network information under Windows? Open the command line under Windows and enter the following command:
As you can see, in the above listed in the intranet address, DNS information, gateway information, intranet address, network address and so on information, including wireless or priority network card and so on information.
This intercepts the network information of a wireless network card and makes a simple example.
How do you get access to their public network information?
-** Baidu.com Enter the public address, you can see their own public network IP
-** Open a www.ip.cn-like network address to see its own public address on the page:
In general, similar sites can also detect network service providers and the region information of the object.
How to get the network information of public network and intranet under Linux?
Under Linux, you can obtain the corresponding intranet information by using the Ifconfig command:
Ifconfig
Here you can see that there are 2 network card information, an internal, an external one.
How do I see the extranet address of a Linux server?
Curl Ifconfig.me
The Curl command is used to access the Web address in situ.
Ifconfig.me is an external service that returns an external IP address.
http://www.woaipu.com/shops/zuzhuan/61406
Http://www.znds.com/tv-967956-1-1.html
Http://www.znds.com/tv-967958-1-1.html
How to get the host's network information and public address in Windows, Linux