Tutorial  Updated

Install and configure switch lan-play on Android

How to setup LAN-Play on Android phone/tablet
REQUIRES ROOT and Android 7.0+


Actions in Android:
1. Install the latest Termux from F-droid
2. Launch Termux app, you'll see a black terminal window.
3. Next, enter these 3 commands one by one:
Code:
curl -L tinyurl.com/switchlan > switchlan
chmod +x switchlan
bash switchlan
note: tinyurl.com/switchlan is a link to the script on my github repo

If after "bash switchlan" there's error: "No superuser binary detected. Are you rooted?" enter these 2 commands to fix (you can paste in Termux with longtap):
Code:
pkg install sed
sed -i 's|SU_BINARY_SEARCH=("/system/xbin/su" "/system/bin/su")|SU_BINARY_SEARCH=("/system/xbin/su" "/system/bin/su" "/su/bin/su")|g' $PREFIX/bin/tsu
3.5. choose what version you want to build (choose stable if latest doesn't compile)
4. It'll setup additional packages and compile lan-play from source (1-5 minutes)
5. Start WiFi tethering (or connect your phone to wifi)

Actions in HOS (Switch):
1. Connect to WiFi and configure network settings:
Code:
IP-address Settings Manual
IP-address 10.13.X.Y (where X and Y is two random numbers 0-255, example: 10.013.187.66 DO NOT COPY EXAMPLE)
Subnet Mask 255.255.0.0
Gate 10.13.37.1
DNS Settings Manual
Primary DNS 163.172.141.219
Secondary DNS 207.246.121.77
2. download ldn-mitm for your version of atmosphere
3. extract it in root of your SDcard (don't forget to clear an archive bit in Hekate if necessary)
4. reboot switch

How to connect to servers:
  • Launch Termux and enter "bash switchlan", script will ask you for root privileges and server's ip address and port
  • or enter "bash switchlan IP address : port" to skip asking part, example: "bash switchlan edgymin.ga:11451"
  • If connection was successful you'll see "Server IP: a.b.c.d" at the end
How to disconnect:
  • Long tap anywhere in Termux -> more -> kill process; or press "exit" in Termux's notification
How to delete lan-play:
  • bash switchlan remove
Changelog:
05.14.21 - replaced wget with curl, as it is preinstalled on all devices
05.16.21 - added workaround for devices rooted with superSU
10.28.21 - updated script - added option of stable release
10.30.21 - bugfixes, QoL changes to the script,
read more.
 
Last edited by ArcharGelod,

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,840
Trophies
1
Age
44
XP
6,638
Country
Germany
I don't get it.
Switch LAN Play enables the "Local Multiplayer" (aka WiFi direct connections between multiple consoles in the same room) to play over the internet instead.
What does that have to do with Android? For Yuzu or what?
 

pokeparadox

Well-Known Member
Member
Joined
Dec 31, 2008
Messages
230
Trophies
0
XP
782
Country
I don't get it.
Switch LAN Play enables the "Local Multiplayer" (aka WiFi direct connections between multiple consoles in the same room) to play over the internet instead.
What does that have to do with Android? For Yuzu or what?
I think this is a portal service that you run on Android that allows your switch to connect to it in LAN mode. The android service then tunnels it over the internet to other users.
 

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,840
Trophies
1
Age
44
XP
6,638
Country
Germany
I think this is a portal service that you run on Android that allows your switch to connect to it in LAN mode. The android service then tunnels it over the internet to other users.
Ah, I thought (for some reason) he meant Switchroot Android. That's what didn't make sense to me.
But he means the Switch and a separate Android device which the Switch connects to and which enables the connection to SLP.
But still: Why would anyone need to go this route if Switch LAN Play is already able to be used directly on the Switch only in CFW? Or did I miss something?
 

renel18

Member
Newcomer
Joined
Dec 9, 2020
Messages
8
Trophies
0
Age
45
XP
66
Country
Philippines
Is it possible to use on non banned switch?although i have latest atmosphere installed,im worried i might get banned,if its possible can i use the same procedure?because right now im using 90dns,this is very helpful because i have rooted android phone
 

renel18

Member
Newcomer
Joined
Dec 9, 2020
Messages
8
Trophies
0
Age
45
XP
66
Country
Philippines
What am i doing wrong? can't type the whole chmod x+ switchlan text in termux
 

Attachments

  • Screenshot_20210513-130344_Termux.png
    Screenshot_20210513-130344_Termux.png
    188.8 KB · Views: 359
  • Like
Reactions: Rabi324

renel18

Member
Newcomer
Joined
Dec 9, 2020
Messages
8
Trophies
0
Age
45
XP
66
Country
Philippines
Can someone please help me,i always get no such fole or directory after chmod +x switchlan, im on android 11 rooted
 

ArcharGelod

Well-Known Member
OP
Newcomer
Joined
May 15, 2019
Messages
45
Trophies
0
Age
25
XP
598
Country
Russia
Is it possible to use on non banned switch?although i have latest atmosphere installed,im worried i might get banned
Yes, it is possible.
Ldn-mitm(needed for most of the games) doesn't support atmosphere 19.2 at the moment, only up to 19.0 .
How to not get ban - you can blank your prodinfo: put file exosphere.ini in root of your sdcard, change blank_prodinfo_emummc and blank_prodinfo_sysmmc from 0 to 1
Then reboot and check if everything working: your console's serial number(Settings>System>Serial) should be 3 letters and bunch of zeroes.
Now you can disable 90DNS and set up dns for lan-play
 
  • Like
Reactions: renel18

renel18

Member
Newcomer
Joined
Dec 9, 2020
Messages
8
Trophies
0
Age
45
XP
66
Country
Philippines
Thanks for the response, but if im not logged as root im not able to even complete the 1st script,any idea?
 

Attachments

  • Screenshot_20210513-224506_Termux.png
    Screenshot_20210513-224506_Termux.png
    174.7 KB · Views: 319

ArcharGelod

Well-Known Member
OP
Newcomer
Joined
May 15, 2019
Messages
45
Trophies
0
Age
25
XP
598
Country
Russia
Thanks for the response, but if im not logged as root im not able to even complete the 1st script,any idea?
Your termux is missing a wget package
Perhaps, it is not the latest version? You can try this command to install wget: "apt install wget -y", then repeat commands
 
Last edited by ArcharGelod,

renel18

Member
Newcomer
Joined
Dec 9, 2020
Messages
8
Trophies
0
Age
45
XP
66
Country
Philippines
Your termux is missing a wget package
Perhaps, it is not the latest version? You can try this command to install wget: "apt install wget -y", then repeat commands
Thanks for the solution,everything seems to be setup and prepared correctly,the only problem now is after changing the switch ip and gateway i cannot connect to the wifi,it says unable to connect to network,im suspecting its because of 90 dns,i already set the prodinfo to blank,how to disable the 90dns?because i cannot set it to auto if the gateway and ip is set to manual.and is it safe now to disable 90dns when the serial is now blank? Sorry for asking lot of question im just totally new to lanplay
 

Attachments

  • Screenshot_20210514-085108_Termux.png
    Screenshot_20210514-085108_Termux.png
    230.6 KB · Views: 300

ArcharGelod

Well-Known Member
OP
Newcomer
Joined
May 15, 2019
Messages
45
Trophies
0
Age
25
XP
598
Country
Russia
can you attach screenshot of wifi settings on switch?
90dns is just an address you type in these settings, if you followed instructions now it should be still working.
And yes it's safe to connect to internet if your console's serial is zeroes.
 
Last edited by ArcharGelod,
  • Like
Reactions: renel18

renel18

Member
Newcomer
Joined
Dec 9, 2020
Messages
8
Trophies
0
Age
45
XP
66
Country
Philippines
can you attach screenshot of wifi settings on switch?
90dns is just an address you type in these settings, if you followed instructions now it should be disabled.
And yes it's safe to connect to internet if your console's serial is zeroes.
Here it is,
 

Attachments

  • IMG_20210514_054136032~2.jpg
    IMG_20210514_054136032~2.jpg
    2 MB · Views: 363

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • ZeroT21 @ ZeroT21:
    @BakerMan Make me a space cake plz
  • BigOnYa @ BigOnYa:
    I make rum cake for 4th July every year, I make it a week prior and then soak it in rum in the fridge all week. I flip the cake each day, and add little more rum, it soaks it up everyday, so good.
    +2
  • BakerMan @ BakerMan:
    sorry, idk what you mean by a space cake, and even if i did, i'm not really taking requests right now, because otherwise people will get mad at me for taking a request but not making a birthday cake for @Xdqwerty (i'm sorry for that btw bro)
  • ZeroT21 @ ZeroT21:
    @BakerMan lies, you just want to smoke it

    :rofl2:
    +1
  • ZeroT21 @ ZeroT21:
    Guess all the food in my fridge can knock out a cow or two
  • ZeroT21 @ ZeroT21:
    I should visit Florida again, miss the alligator barbecues
  • BigOnYa @ BigOnYa:
    Me and wifey was deciding on our next vacation, so I hung up a map on the wall, and give her a dart and said, wherever you hit, we will go. She threw the dart and it missed the map completely and fell into a trash can below on floor. So I said "ok Florida it is."
    +2
  • BakerMan @ BakerMan:
    @ZeroT21 ohhh a pot cake?
    +2
  • SylverReZ @ SylverReZ:
    Gimme some of dat
    +4
  • BakerMan @ BakerMan:
    oh yeah i don't use weed,in my baking or in general
  • BakerMan @ BakerMan:
    besides isn't it usually gummies or brownies?
  • AncientBoi @ AncientBoi:
    So, make a "New Trend"
  • BakerMan @ BakerMan:
    i just said i don't use weed
  • BigOnYa @ BigOnYa:
    You can add it in anything really, you can even make a butter/oil with it, then use that oil in anything
  • BakerMan @ BakerMan:
    besides i'm literally a minor and neurodivergent, so telling me to make a cake with cannabis is traumatizing me, ur cancelled buddy /s/srs
  • BakerMan @ BakerMan:
    (nah jk i'm just parodying those "i'm literally a minor and neurodivergent" mfs on twitter)
    +1
  • BigOnYa @ BigOnYa:
    Michigan has legal rec, so you only have few more years, is it 18 or 21 up there? 21 here in Ohio.
  • BakerMan @ BakerMan:
    prob 21, idk tho
    +1
  • ZeroT21 @ ZeroT21:
    Guess I'll go with plan B and make a Rum Vanilla flavored ice cream
    +1
  • BigOnYa @ BigOnYa:
    That sounds damn good.
  • AncientBoi @ AncientBoi:
    Nah. Tequila maybe
  • AncientBoi @ AncientBoi:
    That, or Old No. 7
  • BigOnYa @ BigOnYa:
    I'm ashamed to ask, but what is old no 7?
  • AncientBoi @ AncientBoi:
    Jack Daniels
    +2
  • BigOnYa @ BigOnYa:
    Oh yea, duh
    +1
    BigOnYa @ BigOnYa: Oh yea, duh +1