Updating host file with port no

Rated 4.85/5 based on 575 customer reviews

Many browsers have plugins that will allow you to make this change without loading your site through a proxy.

If you need to test SSL installation or payment gateways, this may be vastly preferred over using third party web proxies.

This article covers the following topics: A hosts file can be edited to override your network settings and thus allow your local machine to view a website prior to the DNS changes propagating.

Changing your hosts file is a temporary measure to preview your site as it will load from your Host Gator server.

Be sure the Hosts file is extracted or saved as "hosts", without any file extensions, and not as something like "hosts.txt".

For most Linux, Unix, Solaris, and BSD users, this will be in the /etc directory, and you will need root access to do anything with it.

Every hosts file in Linux should have an entry for the IP address "127.0.0.1", with the name "localhost" following it. That same file may also have an entry for your system name, unless you did not provide one during installation.

Auth Trusted = Auth Trusted ' Update instance properties obj HS.

Error descriptions 'are returned to the user by printing to the console.

Put_(Create Only) Check WMIError "Host - " & Host Name & " - has been created successfully" end Sub ' Basic WMI operation - Update ' Sample to show MSBTS_Host Setting instance update Sub Update Host (Host Name, NTGroup Name, Auth Trusted) On Error Resume Next Dim obj Locator, obj Service, obj HS ' Connects to local server WMI Provider Biz Talk namespace Set obj Locator = Createobject ("wbem Scripting. Connect Server(".", "root/Microsoft Biz Talk Server") ' Look for WMI Class MSBTS_Host Setting with name equals Host Name value Set obj HS = obj Service. Check WMIError "Host - " & Host Name & " - has been updated successfully" end Sub ' Basic WMI operation - Delete ' Sample to show MSBTS_Host Setting instance deletion Sub Delete Host (Host Name) On Error Resume Next Dim obj Locator, obj Service, obj HS ' Connects to local server WMI Provider Biz Talk namespace Set obj Locator = Createobject ("wbem Scripting. Connect Server(".", "root/Microsoft Biz Talk Server") ' Look for WMI Class MSBTS_Host Setting with name equals Host Name value Set obj HS = obj Service. Name='" & Host Name & "'") ' Delete instance obj HS.

Auth Trusted = Auth Trusted ' Create instance obj HS. Put_(Update Only) ' Check for error condition before continuing.

Leave a Reply