How To Check The IP Address, Subnet Mask And Default Gateway On A Windows 7 Computer.

In a modern local area network, there are three important components that any network device needs inorder to send and receive network data between devices in the same LAN network and devices out on the internet. These components are an IPv4 address, a subnet mask and a default gateway address. If you are in the process of configuring port forwarding on your windows device to make services such as remote desktop, FTP, active directory, internet information services (IIS) remotely accessible, the first thing that you need to know how to check is the IP configuration. Read this 5 minute tutorial to learn how to check the IPv4 Address, Subnet Mask and default gateway on a Windows 7 physical or virtual computer. The process is similar on newer versions of Windows such as Windows 8 and Windows 10.


In order to complete this tutorial successfully the following items are required. Please ensure to have these items available before taking implementation action on this tutorial:
1) A windows 7, 8 or 10 virtual machine or physical computer
2) Access to a Windows user account with administrator privileges
3) A network interface card (WiFi or Ethernet)
4) A connection to a local area network with a DHCP server


1) Log into Windows and check the IP configuration using the command line interface.
2) Learn how to check the ip address, subnet mask and default gateway from the Windows control panel.
3) Learn how to check the public IP address that your Windows device uses to send and receive data on the internet.

Log Into Windows And Check The IP Configuration Using The Command Line Interface.

1) Log into your windows device then click on START and type CMD on the search box. Just below PROGRAMS(1) double click on the CMD search result to open the Windows command line interface.

2) Run the following command to return the current IPv4 address, subnet mask as well as default gateway that Windows is configured to use:


If you look at the IPv4 Address line on the image on the right, you will see that it is, the subnet mask is and the default gateway is

If you run this command on your computer , it will return the network configuration that is on your computer that looks similar to the what is described here.

3)  To get more detailed information on the current IP configuration on your Windows device run the following command:

ipconfig /all

4) You can also check for the ip address, subnet mask and default gateway from the Windows control panel. Click on START > CONTROL PANEL > NETWORK & INTERNET > NETWORK AND SHARING CENTER > CHANGE ADAPTER SETTINGS.

Right click on the LOCAL AREA NETWORK adapter and click on the DETAILS button. A NETWORK CONNECTION DETAILS window will appear and show properties such as the PHYSICAL ADDRESS, IPv4 ADDRESS, SUBNET MASK, IPv4 DEFAULT GATEWAY as well as the values that have been assigned to each property.

5) If you would also like to know what the public IP address for your network is, You can do so with a simple google search. Go to and type in the words “WHAT IS MY IP”

Google will return a search result indicating the current public IP address that your device is using.