Admin Production rocket
Current Publication

HostsFile Property

Reflection Desktop .NET API Guide V17.0
Rocket® Reflection Desktop (formerly a product of Micro Focus or formerly a product of Open Text) documentation that was created prior to Rocket Software's acquisition of certain products from OpenText may contain outdated references to "Micro Focus” or “OpenText”, which are trademarks of OpenText. Rocket Software is not affiliated with Micro Focus or OpenText and has rebranded these products as Rocket® products.
HostsFile Property
In This Topic
Gets or sets the file path for the file that is used to populate the Host name/IP Address Drop-down list on the Create New VT Document dialog box.
Syntax

                     
                     
'Declaration
 

                     
                     
Property HostsFile As String

                  

                     
                     
'Usage
 

                     
                     
Dim instance As ITerminal
Dim value As String
 
instance.HostsFile = value
 
value = instance.HostsFile

                  

                     
                     
string HostsFile {get; set;}

                  

Property Value

The default value is "". (When the default is set, the path to the local Windows Hosts file is used.)
Remarks
The value of this property depends on your network software. Changing the value of this property in one instance of Reflection affects any instance of Reflection (version 6.0 or later) that you run. The file specified by the HostsFile property is expected to follow the following format: <IPv4 or IPv6 address> <host name> For Example: 127.0.0.1 localhost :: localhost The IP address information is not relevant unless the specified host file also happens to be the Windows system hosts file. The host name information is used to populate the Host name/IP Address Drop-down list on the Create New VT Document dialog box.
See Also