Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the ip address of a particular adapter in windows xp through command

Tags:

networking

I have more than one adapter in my system and I want to know the IP of particular adapter. Is it possible through a command in Windows, in Linux it's easy? Or any other way?

like image 519
zombie Avatar asked Dec 14 '10 14:12

zombie


People also ask

How do you find IP address on Windows XP command prompt?

Click the Run button in the Windows Start Menu. Type cmd in the Open prompt of the Run menu and click OK to launch a command prompt window. Type ipconfig /all at the command prompt to check the network card settings. The IP number and MAC address are listed by ipconfig under IP Address and Physical Address.

How do I find my network adapter in cmd?

Click Start, click Run, type cmd, and then click OK. At the command prompt, type ipconfig, and then press ENTER. Note the following information: The IP address of the network adapter that you want to check.

How do I use ipconfig specific adapter?

To specify an adapter name, type the adapter name that appears when you use ipconfig without parameters. Configures the DHCP class ID for a specified adapter. To set the DHCP class ID for all adapters, use the asterisk (*) wildcard character in place of adapter.


1 Answers

The following will let you specify an adapter (something ipconfig doesn't appear to do):

netsh interface ip show config name="Local Area Connection"

You can add | findstr "IP Address" to the end of that command to only show the IP address line.

like image 183
Trevor Avatar answered Nov 15 '22 23:11

Trevor