Contenu principal

slrtlinux.wsl.getIPAddress

R2026b

Get IP address of WSL distribution named SLRT

Since R2026b

Description

target_address = slrtlinux.wsl.getIPAddress() gets the IP address of the WSL distribution named SLRT that is running on the Linux target device.

example

Examples

collapse all

This example shows how to get the IP address of the WSL distribution named SLRT that is running on the Linux target device.

ipaddr = slrtlinux.wsl.getIPAddress();
disp(['WSL target IP: ' ipaddr])

Output Arguments

collapse all

The IP address of the WSL distribution named SLRT that is used by the Linux target device.

Example: '172.24.16.1'

Data Types: char | string

Version History

Introduced in R2026b