Hello all,

I am new to scripting. So any detailed information would be greatly
appreciated,

From the script, WinFire-com.vbs from Microsoft,
arrNewPorts(0,0) = "FPS" 'Name
arrNewPorts(0,1) = 137 'Port
arrNewPorts(0,2) = NET_FW_IP_PROTOCOL_TCP 'Protocol
arrNewPorts(0,3) = NET_FW_SCOPE_ALL 'Scope - default is NET_FW_SCOPE_ALL
arrNewPorts(0,4) = True 'Enabled - default is True


Regarding the scope, how can I change this so that the port is open for a
range of addresses, say:
10.91.12.56,10.7.14.9/255.255.255.0,10.116.45.0/255.255.255.0

Further, from the same script,
Const NET_FW_IP_PROTOCOL_TCP = 6
Const NET_FW_IP_PROTOCOL_UDP = 17

How do we know that TCP is 6 and UDP, 17. Where do these numbers come from?
The two number, 6 and 17, reappear in each script I've seen. I want to know
how we know that 6 corresponds to TCP and 17 corresponds to UDP. If you could
refer me to documentation that I can read, that would be great!

One more question, how can I say the port is open for all protocols (TCP and
UDP)? Do have to to do two port openings? One for TCP and another for UDP?


I appreciate your help! Thank you in advance!