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.
Crostini is the code name Google uses for the Linux application support for Chrome OS. On Chrome OS, Linux applications run in an LXC container that runs in a virtual machine. The VM isolates the Linux processes and applications from Chrome OS to provide security and stability. See the Crostini sub reddit .
To get Crostini started, click on the clock in the bottom-right corner of the screen and select the Settings icon. Scroll down to the Linux development environment setting—if you don't see it, your Chromebook isn't supported, and you'll need to use one of the other two methods below.
Linux (Beta), also known as Crostini, is a feature that lets you develop software using your Chromebook. You can install Linux command line tools, code editors, and IDEs on your Chromebook. These can be used to write code, create apps, and more.
Linux on ChromeOS, sometimes called Crostini, allows you to run Linux apps for development alongside your usual ChromeOS desktop & apps. Linux on Chromebooks offers developers the best of both worlds.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With