OpenPorts Property

 

Type: String

 

Returns a comma-separated list of port numbers that are detected as permitting outbound traffic (initiating from the client) on the visitor’s machine, based on the ports you instructed BrowserHawk to check via the PortsToCheck property.

 

For example, to use the advanced streaming capabilities of MediaPlayer, port 1755 must be open. Now you can check in advance whether a visitor will have trouble accessing your content.

Another example is the SSL port 443 – if this port is blocked then the user will receive an error when trying to access your HTTPS content – not exactly what you want considering that is usually your order page! Now you can use BH to gracefully detect and handle this situation.

 

Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires the Enterprise Edition of BrowserHawk.

 

Note: Before using this property in a production environment, be sure to Configure the Port Check Server.

 

Note: By default, the OpenPorts check uses cyScape’s Port Check Server. At this time, this server is configured to handle detection of the following ports only: 80, 443, 554, 1755, 7070, 8080, 8081, and 9090. To check the status of any other port you must configure your own Port Check Server.

 

You must instruct BrowserHawk on which ports you want it to check by setting the PortsToCheck property to a comma-separated list of ports you want it to check prior to calling GetExtPropertiesEx.

 

For example, assume you want to check whether streaming ports 554 and 1755 are open. You would set PortsToCheck equal to "554, 1755". After calling GetExtPropertiesEx, the OpenPorts property will contain "554, 1755" if both ports are open, "554" if only port 554 is open, "1755" if only port 1755 is open, or an empty string if neither port is open.

 

Tip: Assuming your web site runs on port 80, always add "80" to the end of the list of ports to check when setting the PortsToCheck property. For example, if you are interested in checking ports 554 and 1755, set PortsToCheck to "554,1755,80". Then when checking the OpenPorts property, you should make sure that it at least contains port 80. If it does not, as would be the case if OpenPorts returned an empty string, then this indicates there was a problem reaching the Port Check Server and the answer can not be relied on.

 

Tip: See the portcheck.asp sample in your BrowserHawk installation directory for a detailed example of performing open port checks with BrowserHawk.

 

Special notes for this property:

 

See Also:

PortsToCheck Property

Port Check Server Configuration

Firewall Property

ImagesEnabled Property

SSLEnabled Property