简体   繁体   中英

How do I find out the IP address of my Crostini container?

I'm running a Node.js server on Crostini, and trying to access it from and Android browser running on the same Chrome OS device via localhost:8080 doesn't work.

I've tried penguin.linux.test:8080 , but that didn't work either. Looks like the Android container didn't get the right DNS settings.

So how do I get the IP address of the Linux container? ifconfig is not installed and apt install fails to get it.

Even easier is just to use hostname -I . This will output the ip address and nothing else

ifconfig is deprecated. Use instead:

ip addr show

Crostini上的ip addr秀

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM