# File Transfer via WiFi

**URL:** <https://forum.snapmaker.com/t/file-transfer-via-wifi/5270>\
**Category:** Snapmaker 2.0 (3-in-1)\
**Created:** [February 14, 2020, 9:52am UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270 "2020-02-14T09:52:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waldo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/waldo/32/1704_2.png) [@Waldo](https://forum.snapmaker.com/u/Waldo)\
**Post date:** [February 14, 2020, 9:52am UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/1 "2020-02-14T09:52:28Z")

</div>

Dear all, I know there is a discussion regarding [“Connect Via WiFi”](http://forum.snapmaker.com/t/connect-via-wifi/4945).  
My question/request is to be able to transfer GCode files via WiFi (network connection).  
Would it be possible to transfer to the Snapmaker Touchscreen drive via WiFi without using Luban?

I use Simplify3D and would prefer to still slice there and then transfer the files via WiFi.

The only method I could establish at the moment is;

1. to copy the files on the USB or
2. Open Luban, "+Upload:, “Transfer via Wi-Fi”.

Regards  
Waldo

---

<div class="post-metadata">

**Author:** ![Tone](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/tone/32/1278_2.png) [@Tone](https://forum.snapmaker.com/u/Tone)\
**Post date:** [February 14, 2020, 3:49pm UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/2 "2020-02-14T15:49:19Z")

</div>

I believe that currently that is the only way.  
@parachvte?

It would be a nice little App to be able to transfer to and from the SM2 via WiFi.

---

<div class="post-metadata">

**Author:** ![parachvte](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/parachvte/32/2015_2.png) [@parachvte](https://forum.snapmaker.com/u/parachvte)\
**Post date:** [February 16, 2020, 7:45am UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/3 "2020-02-16T07:45:59Z")

</div>

Yes. The little App to transfer files will not be easier than Luban. You still have to export G-code file to your disk and than transfer it (via an App or Luban), or use and USB disk.

The only difference is that you don’t have to upload file to Luban backend and let Luban render G-code (for large files it may crash or stucked).

---

<div class="post-metadata">

**Author:** ![Atom](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/atom/32/5608_2.png) [@Atom](https://forum.snapmaker.com/u/Atom)\
**Post date:** [August 7, 2020, 4:27am UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/4 "2020-08-07T04:27:54Z")

</div>

@parachvte What about making a cura plugin to send files to the snapmaker over Wi-Fi? Is that somthing that is possible?

---

<div class="post-metadata">

**Author:** ![zvalentine22](https://avatars.discourse-cdn.com/v4/letter/z/e480ec/32.png) [@zvalentine22](https://forum.snapmaker.com/u/zvalentine22)\
**Post date:** [September 14, 2020, 6:47am UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/5 "2020-09-14T06:47:12Z")

</div>

Just got my A350 setup today. Came to the forum looking for a way to upload without Luban/from the CLI. Found this post. Poked around a bit. The API seems pretty straight forward. Wrote this little python script as a proof of concept. Feed it an IP and path to your file and it’ll upload and fire off a print. Action is still required on touch screen, but I find it quicker than opening Luban/moving a thumb drive around just to start printing. Works for me on firmware 1.10.0: [https://gist.github.com/zvalentine22/50a6bc18dd051aae32bf0c2dd4ac27ee](https://gist.github.com/zvalentine22/50a6bc18dd051aae32bf0c2dd4ac27ee)  
Requires [requests](https://requests.readthedocs.io/en/master/)

---

<div class="post-metadata">

**Author:** ![Atom](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/atom/32/5608_2.png) [@Atom](https://forum.snapmaker.com/u/Atom)\
**Post date:** [September 19, 2020, 2:35am UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/6 "2020-09-19T02:35:36Z")

</div>

Great work on this, ill have to give it a try, thank you for sharing!

---

<div class="post-metadata">

**Author:** ![Bpositive](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@Bpositive](https://forum.snapmaker.com/u/Bpositive)\
**Post date:** [October 5, 2020, 12:27pm UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/7 "2020-10-05T12:27:54Z")

</div>

Yeah such a feature would be very nice to see implemented directly into Cura 🙂 Is that possible as a plugin!?

---

<div class="post-metadata">

**Author:** ![ppmendonca](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@ppmendonca](https://forum.snapmaker.com/u/ppmendonca)\
**Post date:** [October 9, 2020, 2:40am UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/8 "2020-10-09T02:40:06Z")

</div>

zvalentine22,  
I just got my A250 and was able to print 3 files by slicing them in Onshape + Kiri:Moto, downloading to USB dongle from the kit and reading from the dongle.  
I can’t install Luban or Python because I’m on a company computer.  
Could you point me to the API you mention so I can try to figure out a way to send the gcode via wifi without using Luban or Python?  
I read your code but am not learned enough in Python or the parser to distill what I need to do myself.  
Kudos for sharing this with everyone btw.

---

<div class="post-metadata">

**Author:** ![brent113](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/brent113/32/11114_2.png) [@brent113](https://forum.snapmaker.com/u/brent113)\
**Post date:** [October 9, 2020, 2:54am UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/9 "2020-10-09T02:54:13Z")

</div>

@ppmendonca This probably isn’t what you’re looking for, but it’s all that exists. The Luban Github page: [https://github.com/Snapmaker/Luban/blob/767fdd048eb1c141ce539dd2f12aeb076ab9582d/src/app/flux/machine/Server.js](https://github.com/Snapmaker/Luban/blob/767fdd048eb1c141ce539dd2f12aeb076ab9582d/src/app/flux/machine/Server.js)

---

<div class="post-metadata">

**Author:** ![zvalentine22](https://avatars.discourse-cdn.com/v4/letter/z/e480ec/32.png) [@zvalentine22](https://forum.snapmaker.com/u/zvalentine22)\
**Post date:** [October 9, 2020, 4:47am UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/10 "2020-10-09T04:47:29Z")

</div>

Came here to post that same file from the Luban source but looks like @brent113 beat me to it. Discovered that this evening while trying to find something more comprehensive. I was originally just using Wireshark to pick apart the network traffic. I must have been about six deep by the time I wrote that script so things are a bit hazy. Feeling a bit inspired after seeing all the endpoints. Maybe I’ll revisit things tomorrow. I’m not very familiar with JavaScript but I’m sure it’s pretty trivial to make the two requests needed to get a file posted from a web browser and not have to install anything.

---

<div class="post-metadata">

**Author:** ![zvalentine22](https://avatars.discourse-cdn.com/v4/letter/z/e480ec/32.png) [@zvalentine22](https://forum.snapmaker.com/u/zvalentine22)\
**Post date:** [October 10, 2020, 3:21am UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/11 "2020-10-10T03:21:52Z")

</div>

Well it isn’t pretty and it will probably fail silently if you try to upload without confirming the connection on the printer first. You’re going to have to change the ip manually.  
[https://gist.github.com/zvalentine22/bda7d1379f796a514fb7b32a317d9e95](https://gist.github.com/zvalentine22/bda7d1379f796a514fb7b32a317d9e95)

---

<div class="post-metadata">

**Author:** ![zvalentine22](https://avatars.discourse-cdn.com/v4/letter/z/e480ec/32.png) [@zvalentine22](https://forum.snapmaker.com/u/zvalentine22)\
**Post date:** [October 10, 2020, 8:20am UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/12 "2020-10-10T08:20:41Z")

</div>

And one more approach with a batch file using curl. If you have Windows 10 1803 and up, it seems to be included now with no installation necessary. Once you set the ip address you can drag and drop your .gcode file onto the batch file and it should start up. With a little googling and a few minutes one could probably add it to their ‘Send to’ menu if one was so inclined.  
[https://gist.github.com/zvalentine22/c4162f0cda3c7a68e1281d521a2d6cb1](https://gist.github.com/zvalentine22/c4162f0cda3c7a68e1281d521a2d6cb1)

---

<div class="post-metadata">

**Author:** ![brent113](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/brent113/32/11114_2.png) [@brent113](https://forum.snapmaker.com/u/brent113)\
**Post date:** [October 10, 2020, 6:36pm UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/13 "2020-10-10T18:36:48Z")

</div>

@zvalentine22 That batch file is perfect, thanks!

I added the context menu on .GCode files, now I can do this:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/2X/4/4afb6b63a8a791ab6522dc5fed8a8db28738eb4c.png)

I also changed your functionality slightly so there’s no pause after you confirm the connection - it immediately uploads. Saves my walking between rooms. I also added some error handling if the initial connection fails.

To get this running, unzip this folder into C:\Tools. Any other folder will require modifying the registry commands, as they are pointing to “C:\Tools\Send to Snapmaker 2.0 via Wifi”

Version V2: Added context menus for .nc and .cnc file extensions.

[Send to Snapmaker 2.0 via Wifi v2.zip](https://forum.snapmaker.com/uploads/short-url/jflMd8PjKeh93BUx6cbdsnPbrzD.zip) (1.9 KB)

---

<div class="post-metadata">

**Author:** ![FlyByWire](https://avatars.discourse-cdn.com/v4/letter/f/59ef9b/32.png) [@FlyByWire](https://forum.snapmaker.com/u/FlyByWire)\
**Post date:** [October 11, 2020, 6:01am UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/14 "2020-10-11T06:01:14Z")

</div>

This is really cool!!  
Thank’s a lot @zvalentine22 and @brent113

---

<div class="post-metadata">

**Author:** ![zvalentine22](https://avatars.discourse-cdn.com/v4/letter/z/e480ec/32.png) [@zvalentine22](https://forum.snapmaker.com/u/zvalentine22)\
**Post date:** [October 11, 2020, 6:20pm UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/15 "2020-10-11T18:20:11Z")

</div>

Nice. I don’t use Windows primarily so I’m not sure about the scopes of permission, but if someone is locked out of editing the registry I believe they can also navigate to something like ‘shell:send’ or ‘shell:sendto’ and drop in a shortcut to the script as well. Not as clean as a per-type context menu entry, but might be sufficient for some. My Windows machine has been collecting dust in the corner running preview builds and updating itself for years. Finally caught up with me and I can’t even right click anymore without the file manager freezing so I’m unable to play around with either.

As for error handling and potential issues in general I also never tested what kind of response codes the printer throws while printing and if it would cause issues with the script spamming the printer if an upload is attempted.

I’ll take a look at your changes this evening after a fresh install of Windows

---

<div class="post-metadata">

**Author:** ![ppmendonca](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@ppmendonca](https://forum.snapmaker.com/u/ppmendonca)\
**Post date:** [October 11, 2020, 6:22pm UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/16 "2020-10-11T18:22:33Z")

</div>

@zvalentine22 and @brent113 this is way beyond cool!!! Amazing work and attitude!!!

Unfortunately the limitations on my work computer are tougher. None the less, with your help I was able to make the wifi transfer by placing the Upload GCode.bat file (see @brent113’s comment above) on my desktop and dropping the gcode file on it.

For those of you who might have the same limitations as I do:  
1-have the printer on  
2-disconnect form the VPN =\> use non-work network (to avoid firewall etc.)  
3-drop the gcode file into the bat file  
4-go to the printer and hit yes

Again THANK YOU for the help!

---

<div class="post-metadata">

**Author:** ![brent113](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/brent113/32/11114_2.png) [@brent113](https://forum.snapmaker.com/u/brent113)\
**Post date:** [October 11, 2020, 6:39pm UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/17 "2020-10-11T18:39:47Z")

</div>

I added the file association to the current user hive, ~~so it should work even without administrative privilege~~? That’s a beyond me, I also don’t do a lot with the registry.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/snapmaker/original/2X/1/1093d73cdf0d46bc20d31b8daa9289da376c5137.png)

Guess that’s not how it works, good to know.

---

<div class="post-metadata">

**Author:** ![ppmendonca](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@ppmendonca](https://forum.snapmaker.com/u/ppmendonca)\
**Post date:** [October 11, 2020, 9:23pm UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/18 "2020-10-11T21:23:21Z")

</div>

@brent113,  
Just FYI: I can’t change the registry without admin privileges. Very tight restrictions!

---

<div class="post-metadata">

**Author:** ![zvalentine22](https://avatars.discourse-cdn.com/v4/letter/z/e480ec/32.png) [@zvalentine22](https://forum.snapmaker.com/u/zvalentine22)\
**Post date:** [October 11, 2020, 9:59pm UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/19 "2020-10-11T21:59:35Z")

</div>

I suspected if you couldn’t install software, your group policy probably prevented registry modification as well. Try opening File Explorer, type literally:

> shell:sendto

into the path/address bar and press Enter.  
If you can right-click → New → Shortcut and successfully complete the wizard to create a shortcut to the ‘Upload Gcode.bat’ file, any file you subsequently right-click on should have an entry in the Send To menu. The batch script currently doesn’t check for the correct file type, so make sure you’re only sending .gcode. Not sure what behavior you’ll get otherwise.

---

<div class="post-metadata">

**Author:** ![brent113](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.snapmaker.com/brent113/32/11114_2.png) [@brent113](https://forum.snapmaker.com/u/brent113)\
**Post date:** [October 11, 2020, 10:26pm UTC](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270/20 "2020-10-11T22:26:21Z")

</div>

> [@zvalentine22](#):
>
> Not sure what behavior you’ll get otherwise

I sent a .mp3 and the steppers are singing to me 😁

[Next page](https://forum.snapmaker.com/t/file-transfer-via-wifi/5270.md?page=2)
