When you use the following command in Windows XP SP2 to change the TCP or UDP port name in an interface, the command returns Ok.:

netsh firewall set portopening protocol = \[TCP|UDP\] port = name = interface = ”

When you issue netsh firewall show portopening, you are suprised to see that the port name was NOT changed>

NOTE: If you have a single interface, netsh firewall set portopening protocol = \[TCP|UDP\] port = name = works.

To workaround this behavior:

1. Delete the port using:

netsh firewall delete portopening protocol = \[TCP|UDP\] port = interface = ”

2. Add the port back, using:

netsh firewall add portopening protocol = \[TCP|UDP\] port = name = interface = ”