Good Morning Tracy:
Ok. I understand now. Good stuff here.
Thanks so much for your assistance in this project. It is greatly appreciated.
My project is progressing nicely. Do you ever get to the NYC area?
Best regards,
Jack
________________________________________
Jack,
The firewall exception is required.
This code must be run as an administrative user.
This code will need to be run ONLY ONCE, per machine.
tnName and tnPort need to be set. These are:
tnName = The name of the exception seen in the firewall settings
tnPort = The port of the exception to set (the TCP port your utility uses)
LPARAMETERS tnName, tnPort
TRY
loFWM = CreateObject("HNetCfg.FwMgr")
loProfile = loFWM.LocalPolicy.CurrentProfile
loPort = CreateObject("HNetCfg.FWOpenPort")
loPort.Name = tnName
loPort.Protocol = 6 && NET_FW_IP_PROTOCOL_TCP
loPort.Port = tnPort
loPort.Scope = 0 && NET_FW_SCOPE_ALL
loPort.Enabled = .T.
loProfile.GloballyOpenPorts.Add(loPort)
CATCH TO oEx
*-- Comment placed by Tracy Pearson on 12/22/2009
*-- Just catching an error, though we should never
*-- get here since firewall access is checked at INIT
*-- The check was added after the try/catch was in place
ENDTRY
Or in your install process, if you can call an existing EXE on the
workstation as part of the routine
C:\Windows\System32\NETSH.EXE firewall add portopening TCP tnPort "tnName"
Tracy Pearson
PowerChurch Software
Jack Skelley
Senior Director, Programming/Computer Operations
New Jersey Devils
(973)757-6164
[email protected]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/7d9e7f72b813014c8fd022cf04f820ed0c4...@ex08.drdad.thenewarkarena.com
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.