# Lightburn + Wifi on XTool D1 Pro Howto

**URL:** <https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173>\
**Category:** xTool\
**Created:** [March 29, 2023, 10:49pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173 "2023-03-29T22:49:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skreelink](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/skreelink/32/58702_2.png) [@Skreelink](https://forum.lightburnsoftware.com/u/Skreelink)\
**Post date:** [March 29, 2023, 10:49pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/1 "2023-03-29T22:49:54Z")

</div>

I recently obtained an XTool D1 Pro a couple days ago and took a moment to figure out how to utilize lightburn gcode + the built in wifi so I didn’t need to either; pull the SD everytime, or tether. Overall, pretty simple! It was actually about the exact same process I use on my Snapmaker. I used wireshark to see how XCS communicated and it was the same way, just a different URL.

I made a simple .bat file to send the file to the XTool and drag/drop. To make it yourself, replace `XXX.XXX.XXX.XXX` with your XTool D1 IP and save as a .bat. Linux/Mac users will have to do their own respective files, this is for windows.

```auto
@echo on
curl -X POST -F file=@"%~1" "http://XXX.XXX.XXX.XXX:8080/cnc/data?filetype=1"
pause

```

Just do up your project as normal, but **PUT M17 IN THE HEADER GCODE** , click `Save GCode`, then simply drag and drop the file onto the .bat file and wait for it to upload and give you an `ok` response and hit enter to close the window. You can also remove the `pause` and the window will close when it’s done, I just like having the confirmation personally 🙃 Afterwards, poke the button on the front of the machine!

---

<div class="post-metadata">

**Author:** ![Skreelink](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/skreelink/32/58702_2.png) [@Skreelink](https://forum.lightburnsoftware.com/u/Skreelink)\
**Post date:** [April 25, 2023, 1:50pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/3 "2023-04-25T13:50:06Z")

</div>

I think you misinterpreted my post, this is a guide on how to. You save the code above as a .bat file after editing in your XTool IP address, then you can drag/drop your lightburn gcode file onto it and it sends it via wifi to the laser. Then just press the button on the front to start it, negating the need to tether your PC via USB.

Edit: Guess that was a spammer and/or troll. 🙃

---

<div class="post-metadata">

**Author:** ![Johnathanryan30](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/j/f4b2a3/32.png) [@Johnathanryan30](https://forum.lightburnsoftware.com/u/Johnathanryan30)\
**Post date:** [May 14, 2023, 10:00pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/4 "2023-05-14T22:00:13Z")

</div>

So are you say that the IP address for the D1 Pro needs to be changed to xxx.xxx.xxx

---

<div class="post-metadata">

**Author:** ![Skreelink](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/skreelink/32/58702_2.png) [@Skreelink](https://forum.lightburnsoftware.com/u/Skreelink)\
**Post date:** [May 14, 2023, 10:02pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/5 "2023-05-14T22:02:14Z")

</div>

No, replace the `xxx.xxx.xxx.xxx` with the IP address of your XTool.

---

<div class="post-metadata">

**Author:** ![Johnathanryan30](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/j/f4b2a3/32.png) [@Johnathanryan30](https://forum.lightburnsoftware.com/u/Johnathanryan30)\
**Post date:** [May 14, 2023, 10:13pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/6 "2023-05-14T22:13:15Z")

</div>

Im sorry but I am very slow when it comes to computers. I am trying my hardest to learn the best i can so I can operate my laser better. Where do I edit in the IP address at? Im sorry if my questions are frustrating

---

<div class="post-metadata">

**Author:** ![Skreelink](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/skreelink/32/58702_2.png) [@Skreelink](https://forum.lightburnsoftware.com/u/Skreelink)\
**Post date:** [May 14, 2023, 10:28pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/7 "2023-05-14T22:28:53Z")

</div>

In the file you need to make. Open a new notepad document and fill in as an example below, substituting your own IP into the url.

```auto
@echo on
curl -X POST -F file=@"%~1" "http://192.168.1.100:8080/cnc/data?filetype=1"
pause

```

Then save the document as “filesend.bat” making sure the filetype is set to ‘any type’ like this;  
 ![Screenshot 2023-05-14 172818](https://forum.lightburnsoftware.com/uploads/default/original/3X/6/7/67ba0f6c8e418bf600e8165e4ce666c418b62f52.png)

---

<div class="post-metadata">

**Author:** ![Johnathanryan30](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/j/f4b2a3/32.png) [@Johnathanryan30](https://forum.lightburnsoftware.com/u/Johnathanryan30)\
**Post date:** [May 14, 2023, 10:37pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/8 "2023-05-14T22:37:58Z")

</div>

Ok so lets see if I got it right this time. So if I am creating a file to burn in lbrn software I should make the file name filesend.bat and save under all files. Once again I apologize for my lack of knowledge on this whole thing

---

<div class="post-metadata">

**Author:** ![Skreelink](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/skreelink/32/58702_2.png) [@Skreelink](https://forum.lightburnsoftware.com/u/Skreelink)\
**Post date:** [May 14, 2023, 10:39pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/9 "2023-05-14T22:39:36Z")

</div>

After you save the .bat file I presented here, create your lightburn project as normal. Then click the `save gcode` button in lightburn to save the gcode to a file. Then drag and drop the gcode file onto the file send .bat.

EDIT: Make sure to have `M17` in the header gcode in Lightburn.

---

<div class="post-metadata">

**Author:** ![Johnathanryan30](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/j/f4b2a3/32.png) [@Johnathanryan30](https://forum.lightburnsoftware.com/u/Johnathanryan30)\
**Post date:** [May 14, 2023, 10:40pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/10 "2023-05-14T22:40:32Z")

</div>

Ok thanks. Sorry for the dumb questions

---

<div class="post-metadata">

**Author:** ![Skreelink](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/skreelink/32/58702_2.png) [@Skreelink](https://forum.lightburnsoftware.com/u/Skreelink)\
**Post date:** [May 14, 2023, 11:12pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/11 "2023-05-14T23:12:16Z")

</div>

A quick demo.

[![](https://img.youtube.com/vi/3GxIdTeolnM/maxresdefault.jpg "Drag and Drop Demo") ](https://www.youtube.com/watch?v=3GxIdTeolnM)

After you get the `ok` result, simply push the button on the front of the XTool to begin the project.

---

<div class="post-metadata">

**Author:** ![NicholasL](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/nicholasl/32/40942_2.png) [@NicholasL](https://forum.lightburnsoftware.com/u/NicholasL)\
**Post date:** [May 25, 2023, 12:36pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/12 "2023-05-25T12:36:34Z")

</div>

You mentioned M17, I noticed M18 was identified by Steven Kidd [here](https://lightburn.fider.io/posts/1737/wifi-connection-to-xtool-d1-really-needed), as the closing ‘bookend’ for the M17. Does it make any difference to include M18?

Start GCode  
M17 S1 (Enable Steppers)  
M106 S0 (Cross-hair laser - Off)

End GCode  
M18 (Disable Steppers)

---

<div class="post-metadata">

**Author:** ![Skreelink](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/skreelink/32/58702_2.png) [@Skreelink](https://forum.lightburnsoftware.com/u/Skreelink)\
**Post date:** [May 25, 2023, 1:17pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/13 "2023-05-25T13:17:54Z")

</div>

It does not, the machine automatically disables the steppers when the program finishes, so it’s not needed in the footer.

---

<div class="post-metadata">

**Author:** ![NicholasL](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/nicholasl/32/40942_2.png) [@NicholasL](https://forum.lightburnsoftware.com/u/NicholasL)\
**Post date:** [May 25, 2023, 2:24pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/14 "2023-05-25T14:24:11Z")

</div>

Ok, that’s good - no point in having redundant code!

I guess another option with this whole concept would be to have something like a PowerShell program monitor a particular “XTool” folder, so anytime ‘Save GCode’ is used to that folder, the file will be immediately uploaded.

---

<div class="post-metadata">

**Author:** ![Skreelink](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/skreelink/32/58702_2.png) [@Skreelink](https://forum.lightburnsoftware.com/u/Skreelink)\
**Post date:** [May 25, 2023, 2:55pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/15 "2023-05-25T14:55:08Z")

</div>

Would likely be an easy thing to add to Lightburn. 🙂 It’s pretty much just a curl post command. Have a box in device settings for the IP, and if one is set, make an `upload gcode` button appear next to save. That could simply save the gcode file to a temporary place, run it through curl, then delete the temp file. Maybe have it wait for the `ok` response to signify it’s done.

---

<div class="post-metadata">

**Author:** ![traman124](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/t/6bbea6/32.png) [@traman124](https://forum.lightburnsoftware.com/u/traman124)\
**Post date:** [May 26, 2023, 5:00pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/16 "2023-05-26T17:00:19Z")

</div>

@NicholasL This would be a welcome addition to Lightburn to be honest with you…

Theoretically to make this viable you would need to be able to discover devices on the network and frame over WiFi (as well as printing over Wi-Fi).

@LightBurn is this possible?

---

<div class="post-metadata">

**Author:** ![JohnJohn](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/johnjohn/32/37027_2.png) [@JohnJohn](https://forum.lightburnsoftware.com/u/JohnJohn)\
**Post date:** [May 31, 2023, 10:21am UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/17 "2023-05-31T10:21:04Z")

</div>

Please upvote here:

> **[xTool D1/D1 Pro Wifi Support · LightBurn](https://lightburn.fider.io/posts/2833/xtool-d1-d1-pro-wifi-support)**
>
> As mentioned here (https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/12), it is possible to send a gcode file over a PO

---

<div class="post-metadata">

**Author:** ![Skreelink](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/skreelink/32/58702_2.png) [@Skreelink](https://forum.lightburnsoftware.com/u/Skreelink)\
**Post date:** [May 31, 2023, 1:17pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/18 "2023-05-31T13:17:33Z")

</div>

> [@traman124](#):
>
> frame over WiFi

Framing is done via XCS the exact same way the actual job is done. It simply makes a small gcode file to run the framing border with low power, sends it to the machine, and you push the button and watch the framing. So it shouldn’t be too hard to implement in Lightburn, since once you get the wifi sender done, just make the framing button save and send to the machine the boundary run.

---

<div class="post-metadata">

**Author:** ![traman124](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/t/6bbea6/32.png) [@traman124](https://forum.lightburnsoftware.com/u/traman124)\
**Post date:** [May 31, 2023, 3:01pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/19 "2023-05-31T15:01:03Z")

</div>

Ok… that shouldn’t be that hard

---

<div class="post-metadata">

**Author:** ![Skreelink](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/skreelink/32/58702_2.png) [@Skreelink](https://forum.lightburnsoftware.com/u/Skreelink)\
**Post date:** [June 21, 2023, 12:31am UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/21 "2023-06-21T00:31:57Z")

</div>

I’ve made a few more discoveries and currently working on something, I think, users would really like and could be a feature in Lightburn. 🙂 It’s nothing _major_ but to me, has been a very nice thing. I don’t want to hype too much until I do further testing, but keep an eye out in the next few days.

---

<div class="post-metadata">

**Author:** ![AndreaD](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/a/898d66/32.png) [@AndreaD](https://forum.lightburnsoftware.com/u/AndreaD)\
**Post date:** [July 7, 2023, 12:51pm UTC](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173/22 "2023-07-07T12:51:32Z")

</div>

Thank you for sharing. Running my first one now!

[Next page](https://forum.lightburnsoftware.com/t/lightburn-wifi-on-xtool-d1-pro-howto/96173.md?page=2)
