How to redirect networking (HookWinsockAPIs)

Containers can provide redirection for Window's Winsock APIs so that  the ports and IP adddresses 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
    Example Network Redirections
    <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>
Was this article helpful?

Can't find what you're looking for?

Contact Support