Current location - Quotes Website - Collection of slogans - How to check the ip address and port of the computer?
How to check the ip address and port of the computer?
Check the ip address and port of the computer as follows:

Operating environment: ASUS VivoBook 15s, win 10, etc.

1. First, open the computer, open the running interface in the computer, and enter cmd in the input box of the running interface.

2. Then enter ipconfig in the pop-up interface and press Enter on the keyboard to view the IP address, subcode mask and gateway information of the computer.

3. Then enter ipconfig/all in the interface and press enter, and you can see the IP address, subcode mask, gateway information and MAC address of the computer.

4. Finally, enter netstat-ano in the interface and press Enter to view the local port.

Main functions of IP address:

1, using IP address to identify the host of the Internet.

In each IP datagram, the source IP address and destination IP address are carried to identify the source host and destination host of the IP datagram. During the transmission of IP datagrams, each intermediate node (IP gateway) also needs to choose an appropriate forwarding path (i.e. route) from the source host to the destination host. IP protocol can forward IP datagram according to the routing information provided by routing protocol until it reaches the destination host.

2. Matching of 2.IP address and MAC address, ARP protocol.

The data link layer uses MAC address to send data frames, so when actually sending IP messages, it is necessary to match the IP address with the MAC address, which is completed by ARP (Address Resolution Protocol) in TCP/IP protocol family.