From 46e2db3b66d7b5de913ec5fd152cd7881e59dad4 Mon Sep 17 00:00:00 2001 From: Naomi Pentrel <5212232+npentrel@users.noreply.github.com> Date: Fri, 19 Jul 2024 12:15:30 -0400 Subject: [PATCH 1/2] DOCS-2603: Clarify sdk code running on LAN --- docs/build/program/run.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/build/program/run.md b/docs/build/program/run.md index 4dd103b7c8..08b162ee0b 100644 --- a/docs/build/program/run.md +++ b/docs/build/program/run.md @@ -83,9 +83,10 @@ Running everything on one machine is also convenient if you have a machine (for {{}} -The script you run on-machine is the same as the script you [run remotely](#run-code-remotely) or on a local network. -When the connection code from the [**CONNECT** tab's **Code sample** page](/build/program/#hello-world-the-connect-tab) executes, it creates a [client session](/appendix/apis/sessions/) connected to your machine using the [most efficient route](/build/program/connectivity/). -Because the code is running on the same machine as `viam-server`, the favored route for commands is automatically over localhost. +To run SDK code on a local nework, you need to change the connection code, that you obtained from the [**CONNECT** tab's **Code sample** page](/build/program/#hello-world-the-connect-tab). +The default machine address (URI) from the **CONNECT** tab is of the form `mymachine-main.0a1bcdefgi.viam.cloud`. +To connect directly to the local machine, change the end of the URI from `.viam.cloud` to `.local.viam.cloud`. +For the example that results in `mymachine-main.0a1bcdefgi.local.viam.cloud` Install the appropriate programming language and [Viam SDK](/sdks/) on your machine and run a command to execute the program in the terminal of that machine instead of from a separate computer: From 8c7bbb194cb3615d5f55f0c59dba40cbbbab8795 Mon Sep 17 00:00:00 2001 From: Naomi Pentrel <5212232+npentrel@users.noreply.github.com> Date: Sun, 21 Jul 2024 18:24:29 +0200 Subject: [PATCH 2/2] Update docs/build/program/run.md Co-authored-by: JessamyT <75634662+JessamyT@users.noreply.github.com> --- docs/build/program/run.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/build/program/run.md b/docs/build/program/run.md index 08b162ee0b..b718bdc980 100644 --- a/docs/build/program/run.md +++ b/docs/build/program/run.md @@ -86,7 +86,7 @@ Running everything on one machine is also convenient if you have a machine (for To run SDK code on a local nework, you need to change the connection code, that you obtained from the [**CONNECT** tab's **Code sample** page](/build/program/#hello-world-the-connect-tab). The default machine address (URI) from the **CONNECT** tab is of the form `mymachine-main.0a1bcdefgi.viam.cloud`. To connect directly to the local machine, change the end of the URI from `.viam.cloud` to `.local.viam.cloud`. -For the example that results in `mymachine-main.0a1bcdefgi.local.viam.cloud` +For the example that results in `mymachine-main.0a1bcdefgi.local.viam.cloud`. Install the appropriate programming language and [Viam SDK](/sdks/) on your machine and run a command to execute the program in the terminal of that machine instead of from a separate computer: