Dialog Box: Add or Edit IP Addresses

Updated: June 1, 2009

Applies To: Windows 7, Windows Server 2008 R2

Use this dialog box to specify computers by IP address. You can use either Internet Protocol version 4 (IPv4) or Internet Protocol version 6 (IPv6) addresses. You can also specify an entire subnet.

To get to this dialog box

  • When creating a firewall rule by using the New Firewall Rule wizard, on the Scope page, select These IP addresses, and then click Add.

  • When modifying an existing firewall rule, on the Scope tab, select These IP addresses, and then click Add.

  • When creating a connection security rule by using the Connection Security Rule wizard, on the Endpoints page, select These IP addresses, and then click Add.

  • When modifying an existing connection security rule, on the Computers tab, select These IP addresses, and then click Add.

This IP address or subnet

You can specify a single IP address or a subnet for either IPv4 or IPv6 addresses. To specify a subnet, enter the IP address using syntax similar to the following:

192.168.1.0/24

The number following the forward slash (/) represents the number of bits in the subnet mask. 32 bits are possible. In this example, 24 means that the first three octets are the subnet address and the last octet is the host ID within the subnet. The bits representing the host ID must be 0. The example corresponds to a subnet mask of 255.255.255.0.

For an IPv6 address, use the same syntax. The number after the forward slash represents the number of bits in the subnet mask. 128 bits are possible. The bits representing the host ID must be 0.

2001:8e6c:6456:1c99::/64

This IP address range

Enter two IP addresses. The lower numbered address must precede the higher numbered address in the range. The range consists of all IP addresses between the beginning and ending IP addresses. The two range endpoints must use the same IP version, either IPv4 or IPv6.

Predefined set of computers

When specifying remote IP addresses only, you can specify one of the following sets of predefined computers:

  • Default gateway. Uses the IP address currently set as the default gateway of the local computer.

  • WINS servers. Uses the IP addresses for the computers currently configured to provide WINS services to the local computer.

  • DHCP servers. Uses the IP addresses for the computers currently configured to provide DHCP services to the local computer.

  • DNS servers. Uses the IP addresses for the computers currently configured to provide DNS services to the local computer.

  • Local subnet. Uses the IP address and subnet mask of the local computer to dynamically determine addresses that are part of the computer’s local subnet.