WebSetLocalAddress Function

Action

Assigns a specific IP address to the virtual user.

To assign individual IP addresses to virtual users, you first have to set up multiple IP addresses for the network device. This is done with the Silk Performer System Configuration Manager. Afterwards, you can assign each of the IP addresses to a different virtual user.

Include file

WebAPI.bdh

Syntax

WebSetLocalAddress( in sAddress : string ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
sAddress IP address

Example

dcltrans
  transaction TMain
  begin
    WebSetLocalAddress("192.168.20.20");
    WebUrl("http://standardhost");
  end TMain;