29 January 2014

Finding the IP Address of a Specific Network Adapter in Windows (and a rant about Hyper-V)

We just recently made the switch from VMWare over to Hyper-V and I have found two things a bit surprising:

1.) Hyper-V performs better on my laptop than VMWare.  I was having issues with my computer locking up and moving to Hyper-V appears to have corrected it, and I can run more VM’s more quickly with Hyper-V than VMWare, which I was not expecting.

2.) The Hyper-V Virtual Machine viewer has a disgraceful lack of features that is either due to my ignorance or Microsoft’s negligence.  Or both. 

Anyway, remote desktop works amazingly with Hyper-V but my VM’s have a dynamic IP which has to be tracked down each time I want to connect with more features than the Hyper-V viewer has to offer.  I have plans to make this process less painful, but for the time being I’ve got a nice .bat file that outputs the IP address of the adapter to which I need to connect.  And since I keep losing that command, I thought I would immortalize it here on my blog so I could find it again:

netsh interface ip show config id=”quot;Name” of Adapter”

You can find the name of your adapter using ipconfig.exe if you don’t know it, or by looking at the name in the adapter settings in your Network and Sharing center.

Keep up to date with Simple-Talk

For more articles like this delivered fortnightly, sign up to the Simple-Talk newsletter

This post has been viewed 3065 times – thanks for reading.

  • Rate
    [Total: 0    Average: 0/5]
  • Share

Damon Armstrong is a Senior Engineering Team Lead with GimmalSoft in Dallas, Texas, and author of Pro ASP.NET 2.0 Website Programming. He specializes in Microsoft technologies with a focus on SharePoint and ASP.NET. When not staying up all night coding, he can be found playing disc golf, softball, working on something for Carrollton Young Life, or recovering from staying up all night coding.

View all articles by Damon Armstrong