 

Drupal・2 min read・Last update on February 9, 2023

# How to access a local Lando site on other devices

 

 

 

 ![How to access a local Lando site on other devices](/sites/default/files/remediation-media/64e5deb164491f9624d92706_Access_20Lando_20Site_20-_20Feature_20Image.avif) 

 



 

   Table of contents  - [Make changes to access your site on mobile devices in the same network](#make-changes-to-access-your-site-on-mobile-devices-in-the-same-network)
- [Other References:](#other-references)
 
  

 

While working on one of the sites, I was facing responsive issues on mobile devices. It was annoying to deploy smaller changes to check on the actual device.

So I was looking for some tool/solution using which I could check the changes done on a local site immediately on the mobile device.

I was using Lando on my local. So I searched for making Lando’s local site accessible on mobile devices within the same network.

I found that there is a command, **lando share**, using which we can share our local site not only on the same network but over other networks as well (to your client too). But it is no longer functional though you can [sponsor](https://github.com/sponsors/lando) to make it functional again.

I continued searching if there was any other alternative solution, and found one. Please go through the explanation below for detailed steps.

### Make changes to access your site on mobile devices in the same network

First, we will need to change the **bindAddress** in the **config.yml** file. This file specifies the core configuration options for Lando. And it has nothing to do with your **.lando.yml** file. ([Changing the Bind](https://docs.lando.dev/guides/access-by-other-devices.html#changing-the-bind))

Then run the **lando config** command to check the location of the **config.yml** file on your machine.

Open the **config.yml** in your desired code editor. Initially, this file will be blank, with just opening and closing curly brackets.

  ![Access Local Lando Site-1](/sites/default/files/styles/uncropped_700w_webp/public/c3-body-media/dcb8dc660ceb23269c3ff288.png.webp?itok=IWRkhjTI) Then add the following code in the same file and save it.

 ```

{
# Bind my exposes services to all interfaces
bindAddress: "0.0.0.0"
}

```

  ![Access Local Lando Site-2](/sites/default/files/styles/uncropped_720w_webp/public/c3-body-media/4da31cf0332fe6f1d4578fcd.png.webp?itok=jJ9SDRU2) Go to your project directory and run the **lando rebuild** command so that these changes will take effect.

After running **lando rebuild**, this file will look like this:

  ![Access Local Lando Site-3](/sites/default/files/styles/uncropped_600w_webp/public/c3-body-media/d74ca94475c1686e0e7a345b.png.webp?itok=-kX-83vv) As soon as you are done with it, find your IPv4 address.

#### Links to find your private IP address (IPv4 address)

**Mac:** [How to Find Your IP Address on a Mac](https://www.wikihow.com/Find-Your-IP-Address-on-a-Mac)

**Linux:** [How to Find your IP Address in Linux](https://linuxize.com/post/how-to-find-ip-address-linux/)

**Windows:** [How to Find an IP Address in Command Prompt](https://www.lifewire.com/find-ip-address-with-command-prompt-5185235) or [Find your IP address in Windows](https://support.microsoft.com/en-us/windows/find-your-ip-address-in-windows-f21a9bbc-c582-55cd-35e0-73431160a1b9#Category=Windows_11)

  
Access your site on the devices connected on the same network with: *https://&lt;ip\_address&gt;:&lt;port\_number&gt;*

  ![Access Local Lando Site-4](/sites/default/files/styles/uncropped_960w_webp/public/c3-body-media/17f0ec7b2fc3074ae43ecaae.png.webp?itok=vcUg8CBY) So, if your IP address is 198.168.0.1 and your site’s port address is 59061, then hit the following URL in your device’s browser: https://198.168.0.1:59061

Here's a screenshot of my local Lando site:

**Desktop**

  ![Access Local Lando Site-5](/sites/default/files/styles/uncropped_960w_webp/public/c3-body-media/6c5dca42b02757c4bae82fb1.png.webp?itok=fSoGs_3R) **iPhone and iPad**

  ![Access Local Lando Site-iPhone and iPad](/sites/default/files/styles/uncropped_960w_webp/public/c3-body-media/fc6a70adb6ade1213637f290.png.webp?itok=YqPa5B5P) Remove the bindAddress from config after use to avoid any security issues.

Here is a link for quick Drupal site installation guide using Lando: [Getting Started](https://docs.lando.dev/drupal/getting-started.html)

### Other References:

1. [Accessing Lando from Other Devices on Your Local Network](https://docs.lando.dev/guides/access-by-other-devices.html)
2. [Security](https://docs.lando.dev/core/v3/security.html)
3. [Global Config](https://docs.lando.dev/core/v3/global.html)

  
By following the steps mentioned above, you can access your local Lando site on any device within the same network with a few changes in the Lando's config file.

 



Written by

Akshay Adhav

 

 

 

 

 

 

 ## We'd love to talk about your business objectives

 [ Contact Us  ](/contact)