How to find the IP Address from within the CROSH of Chrome OS


In this video we take a look at a terminal command, that will allow you to check the IP address a Chromebook is using. While you can find more extensive information regarding IP address in Network settings. This command can be useful if you want to quickly see if your computer is connected to a network.

Notes: While similar to the Command Prompt in Windows or the Terminal in macOS. The Crosh (Chromium OS shell) is the command line interface for Chrome OS. However, as the Crosh has been locked down by Google, it is not as powerful as the Shells in other operating systems. Which means that the Crosh is mostly used if you need to troubleshoot a Chromebook. 

In order to open a terminal window. If from the ChromeOS desktop, we press and hold down the Control and Alt keys, and then press on the keyboard. A CROSH terminal window will open

  • At the command prompt type:
ipaddrs
  • When we press Enter on our keyboard, we will be presented with basic information about all the network connections on our Chromebook.
  • In order to find the IP address being used by your Chromebook, you will need to find the connection type wlan0 which is the Chromebooks wireless network connection.
  • To make the list of connections shorter, you can use the following command to display only the connections using IPv4
ipaddrs -4
  • To display only the connections using IPv6 use this command:
ipaddrs -6

Note: IPv4, which stands for Internet Protocol version 4. Is one of the core protocols used by the internet to enable devices to connect and communicate with each other. However as the internet has grown, IPv4 can no longer provide enough addresses. So IPv6 was developed, to accommodate more devices, and will create roughly 240 trillion new addresses.

  • To close the Crosh simply type 
exit

Note: As of ChromeOS 119.0.6045.212 (December 12, 2023), we noticed that the network_diag command was no longer being recognised in the CROSH. So while the ipaddrs command does not provide as much information as network_diag. This is the only command the CROSH will recognise in order to display the IP address being used by a Chromebook.

Our site members

Thank you

Support This Site

If you enjoy our content but don't want to be a site member. Please consider supporting us on Ko-fi to keep us ads free. Thanks for all your support