Home  >  Article  >  System Tutorial  >  mac view port configuration file (mac view port command)

mac view port configuration file (mac view port command)

WBOY
WBOYforward
2024-02-16 18:36:19744browse

php editor Xinyi today will introduce to you how to view the port configuration file on Mac and use commands to view the port. During the development and operation and maintenance process, it is very important to understand the configuration of the ports, which can help us solve network connection problems and troubleshoot. In the Mac system, we can check the configuration of the port through simple commands, which is convenient and fast. Next, let us find out together!

Please tell me how to query the IP, MAC, configuration information, and network port of this machine

In Win10 system, find the wireless network connection, right-click Properties, and then find the IP address in settings.

2. Viewing method: In Windows system, you can press the Win R key, enter "cmd" to open the command prompt window, and then enter the "ipconfig" command to view the IPv4 address.

Enter cmd in the search box in the lower left corner and click the CMD command prompt option to open the program. In the command prompt window that opens, type ipconfig /all and press Enter. After completing these operations, you can view the computer's IP address and port information.

You can check the IP of your computer through Network Places or Baidu IP, or you can use the command line to check.

Mac command to view port, process number, and process name

Open the Mac terminal or IDEA terminal and enter the following command: lsof -i:port number (such as 8020). After pressing Enter, the process ID corresponding to the port (such as 1472) will be displayed. Use the kill command plus the process ID to close the port.

There are two ways to open the command prompt: one is to click the Start menu, select Run (or hold down win r at the same time), and then enter cmd; the other is to enter cmd directly in the search box. Then press the Enter key. Enter ipconfig and press Enter to view the current network configuration information. Enter netstat -ano and press Enter to view the current occupation of all ports.

3. View the port. To view the port in Windows2000/XP/Server2003, you can use the Netstat command: click "Start → Run", type "cmd" and press Enter to open the command prompt window.

In the switch privilege mode, enter "enable" to enter the privilege mode. Then, use the command "show arp | include [IP address part or all]" to view the ARP cache. If the IP address you are looking for contains 6158, you can enter the command "show arp | include 6158" so that you can get the corresponding results.

In the Mac system, to open the ping port command, you can find the terminal's open icon through the DOCK bar on the desktop. Just click on it with the right mouse button. This is the simplest way.

6. netstat, findstr, tasklist. First, find the process PID through the port number. Command: netstat -ano | findstr port number. Secondly, find the process name through the PID number. The command: tasklist | findstr. The PID number is unproven. The example is as follows: This article is only for records to facilitate future reference. .

mac view port configuration file (mac view port command)

How to check the port by MAC address

First connect to the switch, we can log in to the switch remotely. Find the MAC address of the machine. You can query this by typing ipconfig/all on the command line. Find the current network card address.

, first connect to the switch, we can log in to the switch remotely. 2. Find the MAC address of the machine. You can query this by entering "ipconfig/all" on the command line. Find the current network card address.

The method for finding the port and MAC address of a Huawei switch is as follows: Connect to the switch and log in remotely. Enter "ipconfig/all" on the command line to query the MAC address of the machine. Enter the command "dis mac-address [MAC address]" in the switch to find the port corresponding to the MAC address.

Configuring printer ports on Apple computers

1. Click the "Apple" icon in the upper left corner, and a pop-up window will appear. Select the "System Preferences" option. On the settings page, click the "Printers and Scanners" icon. Open the window as shown in the figure and click the " " indicated by the arrow. Open the page and click the "IP" icon at the top.

2. The specific steps are as follows: Open [System Preferences] under the Apple menu, which can also be found in the quick navigation bar. Enter the preference interface, find and open the [Printers & Scanners] icon. Click the [ ] button to add a printer. Click [IP] to add a wireless printer by IP address.

3. Default – Use this option to display a list of all printers that your Mac has discovered that are connected to the computer via USB, network connections, or other methods. Select the printer you see here and click Add. If the list of printers is too long, use the search bar at the top right to search for the printer you want.

How to find the corresponding port on a Huawei switch through a known mac address

Find the current network card address. Then we enter the command "dismac-address448A-5BE2-5800" in the switch, and we can find the port corresponding to the mac address. The same idea as cisco, the shmac-dyint interface can see that the interface is connected to the client MAC address.

The method for finding the port and MAC address of a Huawei switch is as follows: Connect to the switch and log in remotely. Enter "ipconfig/all" on the command line to query the MAC address of the machine. Enter the command "dis mac-address [MAC address]" in the switch to find the port corresponding to the MAC address.

Find the MAC address of the machine. You can query this by entering "ipconfig/all" on the command line. Find the current network card address. Then we enter the command "dismac-address448A-5BE2-5800" in the switch, and we can find the port corresponding to the mac address.

How to check which programs occupy a certain port number on mac

lsof -i: Port number (mine is 8020, then enter the following command) lsof -i: 8020 Press Enter to see The process ID corresponding to the port is xxx, for example, mine is 1472, then just kill the process.

Observe the occupied port in the list, such as 49157, find it first. Check the PID to check the PID corresponding to the occupied port. Enter the command: netstat -aon|findstr 49157, press Enter, and write down the last digit, which is the PID. Here it is 2720.

Check the port. To check the port in Windows2000/XP/Server2003, you can use the Netstat command: click "Start → Run", type "cmd" and press Enter to open the command prompt window.

Check which program is occupying a certain port: Method 1: Enter cmd in Start--Run and press Enter, the run window will appear.

Conclusion: The above is all the content about the mac view port configuration file compiled by this site for you. Thank you for taking the time to read the content of this site. I hope it will be helpful to you. Don’t forget more related content. Find it on this site.

The above is the detailed content of mac view port configuration file (mac view port command). For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:shouxicto.com. If there is any infringement, please contact admin@php.cn delete