DEPRECATED: How to redirect networking (HookWinsockAPIs)

Save to PDF

Applies to: AppAcceleratorV prior to 4.5.1810.22909

12/08/2019 Cliff Hobbs   ID: 267099

Important

This article applies to AppAcceleratorV prior to version 4.5.1810.22909. See How to redirect Hostname, Domain Name and IP/Port addresses (NetworkRedirection) for details of how to use the NetworkRedirection compatibility Feature from version 4.5.1810.22909 onwards.

Cloudhouse Compatibility Containers™ can provide redirection for Window's Winsock APIs so that the ports and IP addresses used by an application are redirected without changing the application's source code.

Steps

  1. Open the file AppAcceleratorV.clc in a text editor.
  2. Comment out the Features tag HookWinsockAPIs.
    <AAV>
    ...
       <Features>
          <Feature>HookWinsockAPIs</Feature>
       </Features>
    </AAV>
  3. Configure the required network redirection in the Redirections.xml for example:
    <AAV>
    ::
      <Network>
        <Connect>
          <From>
            <IP>192.168.2.1</IP>
            <Port>13000</Port>
          </From>
          <To>
            <IP>127.0.0.1</IP>
            <Port>12000</Port>
          </To>
       </Connect>
    </Network>


Source:
Was this article helpful?

Table of Contents

    Can't find what you're looking for?

    Contact Support