How to get the host's network information and public address in Windows, Linux

Source: Internet
Author: User

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

Related Article

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.