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

Comments 0

Share to social media

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.

Load comments

About the author

Damon Armstrong

See Profile

Damon Armstrong is a consultant with SystemwarePS in Dallas, Texas. He is also a blogger and author of Pro ASP.NET 2.0 Website Programming and SharePoint 2013 Essentials for Developers. He specializes in the Microsoft stack with a focus on web technologies like MVC, ASP.NET, JavaScript, and SharePoint. When not staying up all night coding, he can be found watching a bunch of kids, studying Biblical topics, playing golf, or recovering from staying up all night coding.