# Do Snapmaker 2.0 Devices Have a Webpage?

**URL:** <https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455>\
**Category:** Snapmaker 2.0 (3-in-1)\
**Created:** [February 27, 2020, 10:34pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455 "2020-02-27T22:34:12Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![cscashby](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@cscashby](https://forum.snapmaker.com/u/cscashby)\
**Post date:** [April 8, 2023, 7:55pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/21 "2023-04-08T19:55:53Z")

</div>

There’s not been any updates to this thread for some time.

A read only API or some way of having multiple connections (or both!) would be awesome if at all possible!

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [April 9, 2023, 12:21pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/22 "2023-04-09T12:21:11Z")

</div>

> [@cscashby](#):
>
> A read only API or some way of having multiple connections (or both!) would be awesome if at all possible!

Multiple connections is possible, actually. It just requires copying your token to other connecting machines.

> [@Howto: Connect Multiple PCs to the Same Machine](https://forum.snapmaker.com/t/howto-connect-multiple-pcs-to-the-same-machine/30725):
>
> I discovered this back when I was making my drag/drop scripts, but am only just now deciding to drop it on the forum. Wasn’t sure it’d be useful or if anyone wanted it. For more information about the scripts, you can find that guide below. Anyway, how the connection actually works in Luban is it simply “pings” the snapmaker every few seconds, if it gets a proper response, it’s “connected”. Pretty much EVERYTHING else, from sending gcode, changing laser power/speed, or just the live preview, i…

---

<div class="post-metadata">

**Author:** ![MP\_Trixi](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@MP\_Trixi](https://forum.snapmaker.com/u/MP_Trixi)\
**Post date:** [September 20, 2023, 2:36pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/23 "2023-09-20T14:36:46Z")

</div>

@fillibar  
@parachvte  
@bastiaanslee

is there somewhere a more exhausive guide how to connect? Every try results in ERR\_CONNECTION\_REFUSED

I have an Artisan, is it there different?

I had a job running tried javascript (with xxx replaced by device ip):  
var request = require(‘request’);  
var options = {  
url: ‘[http://xxx:8080/api/v1/connect](http://xxx:8080/api/v1/connect)’,  
method: ‘POST’,  
form: ‘’  
};  
request(options, function(error, response, body) {  
if (error) log(error, ‘error’);  
});

returned: {‘errno’:-111,‘code’:‘ECONNREFUSED’,‘syscall’:‘connect’,‘address’:‘xxx’,‘port’:8080}

I connected via Luban and tried in browser (chrome):  
[http://xxx:8080/api/v1/status?token=eyJhbGciOiJIUzI1NiIsInR5cXXXXXXXJpZCI6IiIsIm5hbWUiOiIiLCJpYXQiOjE2OTUyMTkyOTAsImV4cCI6MTY5NzgxMTI5MH0XXXXXXgju25zWl5TLoXXXXXXXXpH\_L7p581o-Y6A](http://xxx:8080/api/v1/status?token=eyJhbGciOiJIUzI1NiIsInR5cXXXXXXXJpZCI6IiIsIm5hbWUiOiIiLCJpYXQiOjE2OTUyMTkyOTAsImV4cCI6MTY5NzgxMTI5MH0XXXXXXgju25zWl5TLoXXXXXXXXpH_L7p581o-Y6A)  
where I took the token out of C:\Users\User\AppData\Roaming\snapmaker-luban\machine.json  
Also same error.  
Someone able to help?

---

<div class="post-metadata">

**Author:** ![nweolu](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/nweolu/32/23079_2.png) [@nweolu](https://forum.snapmaker.com/u/nweolu)\
**Post date:** [September 20, 2023, 3:40pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/24 "2023-09-20T15:40:47Z")

</div>

Checkout sm2uploader here on forum or in the [GitHub - shurushetr/awesome-snapmaker: Curated list of things that help you make something awesome with Snapmaker machines.](https://github.com/shurushetr/awesome-snapmaker)

It’s an open source tool that communicates with snapmaker machines. Maybe you can get some inspiration.

---

<div class="post-metadata">

**Author:** ![MP\_Trixi](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@MP\_Trixi](https://forum.snapmaker.com/u/MP_Trixi)\
**Post date:** [September 20, 2023, 6:06pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/25 "2023-09-20T18:06:09Z")

</div>

Nice collection. Thxs for the link. Couldn‘t find thou adhoc a fitting information. Perhaps those who managed getting it work could tell me how to succeed 🙂

---

<div class="post-metadata">

**Author:** ![MP\_Trixi](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@MP\_Trixi](https://forum.snapmaker.com/u/MP_Trixi)\
**Post date:** [September 22, 2023, 12:50pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/26 "2023-09-22T12:50:51Z")

</div>

@Skreelink  
@fillibar  
@bastiaanslee  
@parachvte  
some hints for me, please?

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [September 22, 2023, 1:14pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/27 "2023-09-22T13:14:44Z")

</div>

What exactly are you trying to do? A good first step is to make sure Luban can connect to make sure your token is current.

---

<div class="post-metadata">

**Author:** ![MP\_Trixi](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@MP\_Trixi](https://forum.snapmaker.com/u/MP_Trixi)\
**Post date:** [September 22, 2023, 1:28pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/28 "2023-09-22T13:28:20Z")

</div>

Thxs for your resprone. At start I try to get the status of the machine over the API - as said I have an Artisan. Luban is able to connect to the machine. Everytime I am doing this with Luban the token entry in C:\Users\User\AppData\Roaming\snapmaker-luban\machine.json gets updated. But I am not able to do a connect with POST or get a status with GET using this token while Luban is still connected.  
Tried now with Insomania:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/d/3/d37cfc3ae3c0ffc31d2d1ed802add8def2bd8ab7.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/7/1/7106bd66e0847051e793131dec8375299c5f1056.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/5/1/51f03975b8216da313c32e100b3b9f14cdd1d621.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/f/5/f574d4d886ac94151b9e5c216dc3ea8a5b05aa9a.png)

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [September 22, 2023, 1:36pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/29 "2023-09-22T13:36:42Z")

</div>

You will need the token for connect as well, and status there’s usually some form of timestamp at the end as well (or random string of numbers, I really don’t know). You could try some of my batch files found here;

> [@Guide: Automatic Start via Drag/Drop](https://forum.snapmaker.com/t/guide-automatic-start-via-drag-drop/29177):
>
> This is the “wireless” portion to round out my full Lightburn control guide, found here: Since my main snapmaker (pretty much stays setup with the 10W + Enclosure) is far away from my PC, using a cable + Lightburn isn’t an option. I usually just used Luban to start files. However, as many of you know, their software is slow and iffy, so why not bypass it? Note: Be sure to read all the edits at the end of the post for more info. There’s a few pre-requisites and I’m setting this up on a windo…

Try the “SendCode” from post 4, replace your IP/Token, run the .bat, and try sending `G28` to home the machine.

---

<div class="post-metadata">

**Author:** ![MP\_Trixi](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@MP\_Trixi](https://forum.snapmaker.com/u/MP_Trixi)\
**Post date:** [September 22, 2023, 1:41pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/30 "2023-09-22T13:41:56Z")

</div>

so glad for your support - thxs.  
Just for understanding. I thought with the connect I get the token for further communication. If not where do I get it? I used this one out of the above mentioned machine.json. But I do not think this is the right one, as it changes everytime Luban starts.

---

<div class="post-metadata">

**Author:** ![MP\_Trixi](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@MP\_Trixi](https://forum.snapmaker.com/u/MP_Trixi)\
**Post date:** [September 22, 2023, 1:44pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/31 "2023-09-22T13:44:14Z")

</div>

the SECOND ONE…

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [September 22, 2023, 1:45pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/32 "2023-09-22T13:45:01Z")

</div>

You should be getting the token from the machine json file, yes. I don’t know if they changed anything for the Artisan or newer versions of Luban. I never use Luban anymore, except maybe checking status. However, I’ve never had the token change unless I used a different machine.

---

<div class="post-metadata">

**Author:** ![MP\_Trixi](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@MP\_Trixi](https://forum.snapmaker.com/u/MP_Trixi)\
**Post date:** [September 22, 2023, 1:46pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/33 "2023-09-22T13:46:48Z")

</div>

the first one is right at start of the file:  
{  
“version”: “4.8.2”,  
“state”: {  
“session”: {  
“enabled”: false,  
“token”: “eyJhbGciOiJIUzIXXXXXXXXXXXXXXkpXVCJ9.eyJpZCI6IiIsIm5hbWUiOiIiLCJpYXQiOjE2OTUzODk5MzUsImV4cCI6MTY5Nzk4MTkzNX0.BEfK4SidNH4AUJhzHO-FBRuCtBGzv9w6A\_YaWIi0ekM”,  
“name”: “”  
},

the second one is empty:  
“server”: {  
“address”: “192.168.1.186”,  
“isAuto”: false,  
“name”: “Olaf”,  
“token”: “”  
},

there is no third ☹

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [September 22, 2023, 1:48pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/34 "2023-09-22T13:48:14Z")

</div>

It should be the second one in the server block. Connect with Luban, and while Luban is still open, try looking at the machine.json.

---

<div class="post-metadata">

**Author:** ![MP\_Trixi](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@MP\_Trixi](https://forum.snapmaker.com/u/MP_Trixi)\
**Post date:** [September 22, 2023, 1:50pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/35 "2023-09-22T13:50:34Z")

</div>

I did - Luban is open and connected. No change to the file. The only change of the file happens at Lubans start. But only the first token is updated

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [September 22, 2023, 1:57pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/36 "2023-09-22T13:57:50Z")

</div>

The only other way I can think of to get the token is using a network scanner like Wireshark to sniff the URL that Luban is sending. There MIGHT be a way to get it via the developer console in Luban. I’m not at home currently to really check.

---

<div class="post-metadata">

**Author:** ![MP\_Trixi](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@MP\_Trixi](https://forum.snapmaker.com/u/MP_Trixi)\
**Post date:** [September 22, 2023, 2:00pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/37 "2023-09-22T14:00:11Z")

</div>

ok - thxs - developer console would be great - I am searching currently all files containing “token”

---

<div class="post-metadata">

**Author:** ![MP\_Trixi](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@MP\_Trixi](https://forum.snapmaker.com/u/MP_Trixi)\
**Post date:** [September 22, 2023, 2:34pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/38 "2023-09-22T14:34:15Z")

</div>

not sure if they changed it or I am doing wrong. Tried to sniffer:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/b/4/b419a6117564a61f1d7072be6eca6a13dbd640c3.png)  
The UDP I hit the refresh button in Luban at the connection section. If not connecting the UDP request shows up approx. every second. Then I did a connect. Only TCP traffic on port 8888 - no http. Perhaps there is not API on Artisan?

Sniffered as well Cura with Snapmaker snap-in while transfering GCODE for print to the printer:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/b/f/bfa4f0e4fd4b3c6dbd649876390bd9642fbb572c.png)

---

<div class="post-metadata">

**Author:** ![Skreelink](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/skreelink/32/16398_2.png) [@Skreelink](https://forum.snapmaker.com/u/Skreelink)\
**Post date:** [September 22, 2023, 2:44pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/39 "2023-09-22T14:44:36Z")

</div>

What’s in the packet data? Noticed it looks like it’s using port 8888 instead of 8080.

---

<div class="post-metadata">

**Author:** ![MP\_Trixi](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@MP\_Trixi](https://forum.snapmaker.com/u/MP_Trixi)\
**Post date:** [September 22, 2023, 2:47pm UTC](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455/40 "2023-09-22T14:47:14Z")

</div>

yes, I noticed the port. From which number and what section to show?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/3X/0/a/0aa0f0389a07022bebc752735dea717b196b2de8.png)

[Previous page](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455.md?page=1)

[Next page](https://forum.snapmaker.com/t/do-snapmaker-2-0-devices-have-a-webpage/5455.md?page=3)
