Tutorial Using Tinfoil and Nut over LAN

l7777

Well-Known Member
OP
Newcomer
Joined
Apr 13, 2022
Messages
60
Trophies
0
Location
Earth
XP
119
Country
United States
Like many I ran into trouble attempting to get Tinfoil to talk to Nut via USB. It didn't seem like any combination of enabling or disabling the MTP/Nut options in Tinfoil or drivers worked. Additionally I'm suspicious of Tinfoil's MTP implementation in general as it has given me trouble on more than one occasion simply attempting to copy things to/from the SD card.

Pre-Reqs
  • Nut + keys.txt from somewhere.
  • Tinfoil
  • A computer to run Nut on and some games you'd like to be able to install
  • Modded or hacked switch
  • (Optional) A wired network adapter. Wireless on the Switch will get you around 6 - 12 MBps transfer rates, wired gigabit will get around 30 - 45 MBps. Also note those numbers are not to be confused with Mbps.
  • (Optional) If you're concerned with bans and such you should probably have already done this but take steps to prevent your console from talking to Nintendo servers as you will be connecting it to your LAN and likely the Internet.


Set up nut and start it. Be sure to allow the Windows firewall exception when prompted.

firewall.png


If you have already dismissed the notification or didn't see the notification, you will need to open the Windows firewall and setup a rule that allows the nut.exe application to talk on your network but this is outside the scope of this guide.



Next get the IP address, port, and user credentials from the Nut window.

nut.png





Connect your Switch to the wired network adapter or your wireless network. Open Tinfoil and create a new source. Replace the Host IP address in the screenshot below with your IP address from the Nut window. Once saved and refreshed Tinfoil should populate the New Games tab and others with the content available via Nut.

tinfoil.jpg





Troubleshooting:
The most likely problem is the Windows Firewall. To confirm, check the Nut console window for any messages. A successful connection from Tinfoil to the Nut server will generate a couple lines regarding getSearch with the IP address of the switch and a timestamp.
connection.png

If you don't see this, you likely have a firewall problem or something else is preventing network communication between the switch and the computer running Nut.
 
  • Like
Reactions: binkinator

urherenow

Well-Known Member
Member
Joined
Mar 8, 2009
Messages
4,159
Trophies
1
Age
46
Location
Japan
XP
2,731
Country
United States
I don't think I use MTP, I just use nut. I only have issues installing things that way when I add or delete stuff (NSPs) to the folders. Then, I close nut, go to /titledb (on my PC), and delete EVERYTHING in there. It takes a bit after you open nut again for the db stuff to re-download/rebuild itself, but when it's done, I refresh the list in nut, then reopen tinfoil, and all is well.

EDIT: Just checked my settings, and I do currently have both MTP and NUT enabled. I install games from the USB: part of the file browser menu on the Switch.
 
Last edited by urherenow,

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
1,971
Trophies
1
XP
1,331
Country
United States
Like many I ran into trouble attempting to get Tinfoil to talk to Nut via USB. It didn't seem like any combination of enabling or disabling the MTP/Nut options in Tinfoil or drivers worked. Additionally I'm suspicious of Tinfoil's MTP implementation in general as it has given me trouble on more than one occasion simply attempting to copy things to/from the SD card.

Pre-Reqs
  • Nut + keys.txt from somewhere.
  • Tinfoil
  • A computer to run Nut on and some games you'd like to be able to install
  • Modded or hacked switch
  • (Optional) A wired network adapter. Wireless on the Switch will get you around 6 - 12 MBps transfer rates, wired gigabit will get around 30 - 45 MBps. Also note those numbers are not to be confused with Mbps.
  • (Optional) If you're concerned with bans and such you should probably have already done this but take steps to prevent your console from talking to Nintendo servers as you will be connecting it to your LAN and likely the Internet.


Set up nut and start it. Be sure to allow the Windows firewall exception when prompted.

View attachment 307461

If you have already dismissed the notification or didn't see the notification, you will need to open the Windows firewall and setup a rule that allows the nut.exe application to talk on your network but this is outside the scope of this guide.



Next get the IP address, port, and user credentials from the Nut window.

View attachment 307462




Connect your Switch to the wired network adapter or your wireless network. Open Tinfoil and create a new source. Replace the Host IP address in the screenshot below with your IP address from the Nut window. Once saved and refreshed Tinfoil should populate the New Games tab and others with the content available via Nut.

View attachment 307463




Troubleshooting:
The most likely problem is the Windows Firewall. To confirm, check the Nut console window for any messages. A successful connection from Tinfoil to the Nut server will generate a couple lines regarding getSearch with the IP address of the switch and a timestamp.
View attachment 307464
If you don't see this, you likely have a firewall problem or something else is preventing network communication between the switch and the computer running Nut.
Added! https://bit.ly/binky08
 

randy_w

Well-Known Member
Member
Joined
Feb 27, 2021
Messages
278
Trophies
0
Age
32
XP
567
Country
United States
Personally I use tinfoil to install xci/nsp files from my NAS over FTP. I don't really want to run an extra 3rd party software on my NAS just to serve the package files for switch. Btw their SMB implementation is buggy and would drop the connection randomly. FTP is rock solid so just use FTP.
 

l7777

Well-Known Member
OP
Newcomer
Joined
Apr 13, 2022
Messages
60
Trophies
0
Location
Earth
XP
119
Country
United States
I don't think I use MTP, I just use nut. I only have issues installing things that way when I add or delete stuff (NSPs) to the folders. Then, I close nut, go to /titledb (on my PC), and delete EVERYTHING in there. It takes a bit after you open nut again for the db stuff to re-download/rebuild itself, but when it's done, I refresh the list in nut, then reopen tinfoil, and all is well.

EDIT: Just checked my settings, and I do currently have both MTP and NUT enabled. I install games from the USB: part of the file browser menu on the Switch.
I found that closing Nut and simply deleting titledb/files.json is enough to fix any issues there but USB still wouldn't cooperate for me. I keep everything on a file server so running Nut there and connecting over the LAN fit my use case better as well.
Personally I use tinfoil to install xci/nsp files from my NAS over FTP. I don't really want to run an extra 3rd party software on my NAS just to serve the package files for switch. Btw their SMB implementation is buggy and would drop the connection randomly. FTP is rock solid so just use FTP.
Yes, SMB or FTP was going to be my next try if Nut over LAN had failed. Unfortunate to hear that the SMB implementation isn't solid.
 

l7777

Well-Known Member
OP
Newcomer
Joined
Apr 13, 2022
Messages
60
Trophies
0
Location
Earth
XP
119
Country
United States
MTP installs are fast. Just use MTP
Based on my experience of wired LAN installs and copying things via DBI's MTP responder I'd say they are the same, ~35 MBps. WiFi is of course slower but more convenient since you're not attached to a cable.
 

mikefor20

We
Member
Joined
Jan 12, 2009
Messages
1,629
Trophies
0
Location
Mushroom Kingdom ( o Y o )
XP
2,792
Country
United States
It's already functional. No registry muckery. If someone can't get this right they have no business with FTP. And the MTP protocol works well. The MTP in tinfoil is great. Install,rip,sd,firmware all right there. Last I looked NUTs "driver" was just a registry entry.. But i don't like running stuff like that on my PC. MTP just requires a USB cable.
 

Krazyeye

Hellooo Nurse!
Member
Joined
Aug 5, 2017
Messages
190
Trophies
0
Location
Mighty Jungle
XP
955
Country
Korea, South
Fast & Easiest Method:
I have been using my external hard drives & USB flash drives to install games. FTP and NUT never really worked right for me plus the installation speed was way too slow.

1. You can connect the USB drives straight into the switch DOCK itself.
2. Launch Tinfoil and wait for it to refresh.
3. Under "File Browser", you can locate your external drives depending on which USB port is connect to the DOCK, it should be under "hdd1" or hdd2"

Using this method, I can install any games at roughly 35~45MB/S.
 

mikefor20

We
Member
Joined
Jan 12, 2009
Messages
1,629
Trophies
0
Location
Mushroom Kingdom ( o Y o )
XP
2,792
Country
United States
Fast & Easiest Method:
I have been using my external hard drives & USB flash drives to install games. FTP and NUT never really worked right for me plus the installation speed was way too slow.

1. You can connect the USB drives straight into the switch DOCK itself.
2. Launch Tinfoil and wait for it to refresh.
3. Under "File Browser", you can locate your external drives depending on which USB port is connect to the DOCK, it should be under "hdd1" or hdd2"

Using this method, I can install any games at roughly 35~45MB/S.

This works quickly but then you have to copy it twice. Once from the hard drive to the USB and another time from the USB to the switch. Using just a USB cable lets you install it directly from the PC to the switch.
 

Krazyeye

Hellooo Nurse!
Member
Joined
Aug 5, 2017
Messages
190
Trophies
0
Location
Mighty Jungle
XP
955
Country
Korea, South
This works quickly but then you have to copy it twice. Once from the hard drive to the USB and another time from the USB to the switch. Using just a USB cable lets you install it directly from the PC to the switch.
That's why I have a dedicated 4TB external hard drive just for my Switch.
I just unplug from my PC then connect USB to my switch DOCK for install. I can install ~8GB base game files within 5mins or less.
 

Chaosta

Well-Known Member
Member
Joined
Sep 18, 2020
Messages
455
Trophies
0
XP
467
Country
United States
I just connect switch to pc, start tinfoil, open switch on pc, drag n drop games to install folder, done.
 

l7777

Well-Known Member
OP
Newcomer
Joined
Apr 13, 2022
Messages
60
Trophies
0
Location
Earth
XP
119
Country
United States
MTP installs are fast. Just use MTP

It's already functional. No registry muckery. If someone can't get this right they have no business with FTP. And the MTP protocol works well. The MTP in tinfoil is great. Install,rip,sd,firmware all right there. Last I looked NUTs "driver" was just a registry entry.. But i don't like running stuff like that on my PC. MTP just requires a USB cable.

Fast & Easiest Method:
I have been using my external hard drives & USB flash drives to install games. FTP and NUT never really worked right for me plus the installation speed was way too slow.

1. You can connect the USB drives straight into the switch DOCK itself.
2. Launch Tinfoil and wait for it to refresh.
3. Under "File Browser", you can locate your external drives depending on which USB port is connect to the DOCK, it should be under "hdd1" or hdd2"

Using this method, I can install any games at roughly 35~45MB/S.

This works quickly but then you have to copy it twice. Once from the hard drive to the USB and another time from the USB to the switch. Using just a USB cable lets you install it directly from the PC to the switch.

That's why I have a dedicated 4TB external hard drive just for my Switch.
I just unplug from my PC then connect USB to my switch DOCK for install. I can install ~8GB base game files within 5mins or less.

I just connect switch to pc, start tinfoil, open switch on pc, drag n drop games to install folder, done.
Great to hear that Tinfoil via USB works well for you guys, this thread is an alternate method. If you don't need it, great. Discussing how USB works for you isn't needed.
 
  • Haha
Reactions: Krazyeye

randy_w

Well-Known Member
Member
Joined
Feb 27, 2021
Messages
278
Trophies
0
Age
32
XP
567
Country
United States
For me everything switch related is stored on my NAS (from torrent download and cartridge dump) so can't bother with USB. FTP is the only option for me (if they can fix smb it would be great). Speed is about 10MB/s on the unpatched v1, and 18-20MB/s on OLED.
 

mikefor20

We
Member
Joined
Jan 12, 2009
Messages
1,629
Trophies
0
Location
Mushroom Kingdom ( o Y o )
XP
2,792
Country
United States
Great to hear that Tinfoil via USB works well for you guys, this thread is an alternate method. If you don't need it, great. Discussing how USB works for you isn't needed.

It's good to have the other methods discussed as well. That way some noobs get all pertinent information in one thread instead of just your opinion. It doesn't really matter where you want the conversation to go. That's the beauty of a forum. USB works way better for noobs. And NUT install messes with your registry. That is something that might bother some. It should be mentioned..

Besides,if you're installing through the LAN like your title says you're installing through USB anyway.

You mean WAN.
 

l7777

Well-Known Member
OP
Newcomer
Joined
Apr 13, 2022
Messages
60
Trophies
0
Location
Earth
XP
119
Country
United States
It's good to have the other methods discussed as well. That way some noobs get all pertinent information in one thread instead of just your opinion. It doesn't really matter where you want the conversation to go.
And there are plenty of threads to discuss USB installs. This one is intended to present a solution over LAN rather than note what method is best for what person or the merits of one solution over the other.
And NUT install messes with your registry. That is something that might bother some. It should be mentioned..
Have details on this? Every Windows app can use the registry. Unless run with admin rights it should not be able to touch anything but its own section of the registry.
Besides,if you're installing through the LAN like your title says you're installing through USB anyway.

You mean WAN.
I mean LAN (Local Area Network). WAN (Wide Area Network) is anything outside my network IE: the public internet. Connecting to my LAN via Ethernet through a USB adapter or dock vs WiFi does not change what I'm connecting to.
 

mikefor20

We
Member
Joined
Jan 12, 2009
Messages
1,629
Trophies
0
Location
Mushroom Kingdom ( o Y o )
XP
2,792
Country
United States
And there are plenty of threads to discuss USB installs. This one is intended to present a solution over LAN rather than note what method is best for what person or the merits of one solution over the other.

Have details on this? Every Windows app can use the registry. Unless run with admin rights it should not be able to touch anything but its own section of the registry.

I mean LAN (Local Area Network). WAN (Wide Area Network) is anything outside my network IE: the public internet. Connecting to my LAN via Ethernet through a USB adapter or dock vs WiFi does not change what I'm connecting to.
Having all the info in one place is good for everyone. You don't get to dictate what people say. Try to include the other options. That way you have complete information. It's this BS that happens all the time here. You shouldn't have a SXOS thread without mentioning that atmo is an option for example. People think their way is better. And id may be,for them. Just a small blurb that MTP is effective and already set up in your PC is helpful and noob friendly. Sorry if your ego doesn't appreciate it

There was details in the release notes. about the registry entry. Blawar also commented on it before. I know all software has access but it's a deal breaker for some. It is homebrew and definately shady in origin after all.

If you have a Ethernet adapter, you are tethered. Your focus is on WiFI implementation. That should be reflected in the title.

NUT implementaton sucks. The NAT storage with FTP.. fine. I get it. But NUT itself is unrefined. There is tons of pages on it's issues. MTP is clean and fast. Just saying.
 
  • Like
Reactions: Krazyeye

l7777

Well-Known Member
OP
Newcomer
Joined
Apr 13, 2022
Messages
60
Trophies
0
Location
Earth
XP
119
Country
United States
Having all the info in one place is good for everyone. You don't get to dictate what people say. Try to include the other options. That way you have complete information. It's this BS that happens all the time here. You shouldn't have a SXOS thread without mentioning that atmo is an option for example. People think their way is better. And id may be,for them. Just a small blurb that MTP is effective and already set up in your PC is helpful and noob friendly. Sorry if your ego doesn't appreciate it

If you have a Ethernet adapter, you are tethered. Your focus is on WiFI implementation. That should be reflected in the title.
I think you should re-read my OP. It is a statement of my experience and how to do something, nothing more, nothing less. I posted it to share the info. Everyone is free to determine if it is helpful to them or not. You came in and posted an opinion. I have no ego problems, was going to keep the thread on topic. If you want to include a tutorial on how to use Tinfoil with MTP, feel free to add it.
There was details in the release notes. about the registry entry. Blawar also commented on it before. I know all software has access but it's a deal breaker for some. It is homebrew and definately shady in origin after all.

NUT implementaton sucks. The NAT storage with FTP.. fine. I get it. But NUT itself is unrefined. There is tons of pages on it's issues. MTP is clean and fast. Just saying.
How about a link? I'm happy to go read but I see nothing in the Nut documentation about the registry. Nor did I see anything malicious when I examined Nut with Process Monitor.
Closing the loop on this because I was curious. The "tinfoil_driver" is still using the libusbk driver noted elsewhere on the forum. It simply eliminates the need to use a tool like zadig or the windows device manager to tell Windows which driver to use. The tinfoil.reg file alters the idle and USB timeout settings for the Switch MTP device.

Finally, for what it's worth, because my method does not use MTP neither is needed to connect to Nut if one is concerned.
 
Last edited by l7777,
General chit-chat
Help Users
  • No one is chatting at the moment.
  • AliceCE @ AliceCE:
    could you imagine using a usb had drive on a 3ds
    Gift
  • Dark_Phoras @ Dark_Phoras:
    And a special receptor to play xCloud games
    Gift
  • Dark_Phoras @ Dark_Phoras:
    And an ice maker for your drinks
    +1
    Gift
  • AliceCE @ AliceCE:
    and a mouth cup for sedating you before surgery
    Gift
  • AncientBoi @ AncientBoi:
    Ice maker, make me a Root Beer float! lol
    Gift
  • AliceCE @ AliceCE:
    Starts mario kart 7
    Gift
  • AliceCE @ AliceCE:
    if i ever get another Old3DS it's gonna be a different color than goddamn blue
    Gift
  • Dark_Phoras @ Dark_Phoras:
    3DS had a Super Mario Maker, why not an ice maker?
    Gift
  • AliceCE @ AliceCE:
    i have owned 4 blue old3dses and one black new3ds
    Gift
  • KenniesNewName @ KenniesNewName:
    I got a spam call and the guy hanged up on me when he said he was in DC and I asked how the weather was :sad:
    Gift
  • AliceCE @ AliceCE:
    also, i miss gridlauncher :sad:
    Gift
  • AliceCE @ AliceCE:
    the regular 3ds homebrew menu sucks :angry:
    Gift
  • AliceCE @ AliceCE:
    gridlauncher was much funner
    Gift
  • KenniesNewName @ KenniesNewName:
    I was just being his friend he said I could get 9,000 and I demanded 9 million :sad:
    Gift
  • AliceCE @ AliceCE:
    i liked the themey system, and i like how it had OPTIONS instead of a stupid wrench button that does absolutely nothing
    Gift
  • Dark_Phoras @ Dark_Phoras:
    The best salesman in the world is able to sell his product to the CEO of the company that spam
    calls him to sell their own product
    Gift
  • AliceCE @ AliceCE:
    i may not be a good homebrew dev yet but i personally think gridlauncher was much much better than the shit, bog standard homebrew menu
    Gift
  • Gift
  • AliceCE @ AliceCE:
    it had way more personality, the standard homebrew menu feels like an 3ds applet, developed quickly and without any quirks
    Gift
  • AliceCE @ AliceCE:
    too bad luma just so happens to completely break gridlauncher , and the fact that it's not maintained anmore
    Gift
  • AliceCE @ AliceCE:
    hell, even the wii homebrew menu gives me heavy nostalgia, even if it's barely, if at all customiable, but the 3ds
    homebrew launcher is ass
    Gift
  • AliceCE @ AliceCE:
    rant over
    Gift
  • AliceCE @ AliceCE:
    thank god i backed up my nand after fixing my 3ds
    , it'd be a fucking chore to do ctrtransfer again
    Gift
  • AliceCE @ AliceCE:
    either way i should really clear out my microsd, i'm pretty sure the sheer amount of shit i have on it might be fuckin' with my 3ds
    Gift
  • AliceCE @ AliceCE:
    also i got a SATA Data cable from the tech dudes in the high school, so now i can gain 500 giggitys of extra storage space on my pc
    Gift
    AliceCE @ AliceCE: also i got a SATA Data cable from the tech dudes in the high school, so now i can gain 500...