TwclWiFiInterface.GetCurrentIp(Boolean,string,string,string,string,string) Method
Gets the current IP address of the interface.
public function GetCurrentIp(out Static: Boolean; out Address: string; out Mask: string; out Gateway: string; out Dns1: string; out Dns2: string): Integer;
Parameters
- Static
- Type: Boolean
True
if the interface uses static IP configuration.False
if the interface uses DHCP. - Address
- Type: string
The current IP address.
- Mask
- Type: string
The subnet mask.
- Gateway
- Type: string
The default gateway address.
- Dns1
- Type: string
The first DNS server address.
- Dns2
- Type: string
The second DNS server address.
Return Value
Type: Integer
If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.