Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 969
Dan Dascalescu Avatar asked Nov 08 '18 20:11

Dan Dascalescu


People also ask

Is Crostini a VM or container?

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 .

How do I enable Crostini on Chromebook?

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.

What is Crostini on Chromebook?

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.

What distro is Crostini based on?

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.


2 Answers

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

like image 69
Ammaar Patel Avatar answered Dec 21 '22 02:12

Ammaar Patel


ifconfig is deprecated. Use instead:

ip addr show

ip addr show on Crostini

like image 38
Dan Dascalescu Avatar answered Dec 21 '22 01:12

Dan Dascalescu