# Local canisters on LAN

**URL:** <https://forum.dfinity.org/t/local-canisters-on-lan/32246>\
**Category:** Developers\
**Created:** [June 21, 2024, 6:58am UTC](https://forum.dfinity.org/t/local-canisters-on-lan/32246 "2024-06-21T06:58:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mysticx](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Mysticx](https://forum.dfinity.org/u/Mysticx)\
**Post date:** [June 21, 2024, 6:58am UTC](https://forum.dfinity.org/t/local-canisters-on-lan/32246/1 "2024-06-21T06:58:36Z")

</div>

I have been struggling to access my locally running canisters from LAN. I want to access canisters through the `192.168.1.49:8000`. I’ve added this setting in the `dfx.json` :

```auto
"networks": {
    "local": {
      "bind": "192.168.1.49:8000",
      "type": "ephemeral",
      "replica": {
        "subnet_type": "system"
      }
    }
  }

```

but I get this error trying to access the canister (on my ubuntu machine):

```auto
An error happened in Candid canister:
v: Server returned an error:
  Code: 400 ()
  Body: subnet_not_found

    at R._requestAndRetry (http://192.168.1.49:8000/index.js:2:16377)
    at async R._requestAndRetry (http://192.168.1.49:8000/index.js:2:16336)
    at async R._requestAndRetry (http://192.168.1.49:8000/index.js:2:16336)
    at async R._requestAndRetry (http://192.168.1.49:8000/index.js:2:16336)
    at async R.query (http://192.168.1.49:8000/index.js:2:17155)
    at async http://192.168.1.49:8000/index.js:2:28484
    at async getDidJsFromTmpHack (http://192.168.1.49:8000/index.js:2:276643)
    at async fetchActor (http://192.168.1.49:8000/index.js:2:273792)
    at async http://192.168.1.49:8000/index.js:2:289243

```

on my Mac Book I get this error instead (no I’m not accessing the same canister through the Mac book it has its on local replica running):

```auto
An error happened in Candid canister:
r@http://192.168.1.3:8000/index.js:2:10398
D@http://192.168.1.3:8000/index.js:2:14599
@http://192.168.1.3:8000/index.js:2:28049

```

it works fine if I bind it to `127.0.0.1` though in that case I can’t access it through my ip address or on my LAN

 ![Screenshot 2024-06-21 at 11.56.23 AM](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/8/6/86b0c4a5609af693feae84cc9e9367120cf025e4.png)
