IPConfig is a Windows command-line utility used to view a machine's IP address, subnet mask, default gateway, and MAC address. Running it with the /all switch returns full network adapter details including physical addresses.
IPConfig Utility
There's a utility that can help you look up some information about the IP address on your machine. It's called ipconfig, and it's really handy.
This utility ipconfig needs to be done in a command window. So I'm going to open up Windows and type in cmd to bring up a command prompt here. And here is our command prompt. And I'm just going to type in ipconfig and see what we see.
One thing we have is all of the connections here. So I've got a LAN connection, a wireless LAN connection here, another wireless LAN connection, another one, there's the Bluetooth, and there's a couple Ethernet. So the one that we're actually looking at is this Ethernet right here. And on here, it gives me the IP version 6 link local address, it gives me the IP version 4 address. It also gives me the default gateway, which one's the default gateway, and the subnet mask here. So the one that I'm really pointing out here is this IP version 4 address, 192.16842245. That's the IP address of this interface.
There's other commands that we can use. So I can type in ipconfig with a switch of all and hit that, and now it shows me the MAC address of these. So I can scroll up to that one that we're looking at, Ethernet 2, and it includes the MAC address for this. So if we see in here, the physical address right here is going to be the MAC address.
There are other commands with ipconfig, but I just want to show you the basics so you can start playing around with it and using it.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →