DEV Community

Discussion on: Find the IP address of your WSL instance

Collapse
 
spyshow profile image
jihad khorfan

if it's returning 3 ip addresses , how can i select the first one

Collapse
 
agiboire profile image
Adrien

You mean wsl hostname -I returns you more than one addresses?

Collapse
 
arafat877 profile image
Arafat Bouchafra • Edited

yes, it returns multiple IP addresses

Thread Thread
 
agiboire profile image
Adrien

Do you have a default instance set?