Get IP address of target computer
Get the IP address of the target
Create a target object and add a target with name
LinuxTarget1 containing user name
tgs = linux.Targets(); tg = tgs.addTarget("LinuxTarget1", "18.104.22.168", "user1", "myPassword");
Get the IP address.
ipAddress = getIPAddress(tg);
tg — Object representing a target computer
Object represents a target computer. Use the object to establish the connection with Linux target, to deploy the applications on Linux target, and perform several other actions.
ipAddress — IP address of the target
Returns the IP address of the target.
Introduced in R2022b