When esxcli commands are not available - either because network is down or because hostd is running amok - you can use localcli instead.
AFAIK localcli offers a subset of the esxcli commands but your example is available.
Try
localcli network ip get
for example
________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...