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,784
Trophies
1
Age
44
XP
6,509
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,784
Trophies
1
Age
44
XP
6,509
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: 351
  • 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
555
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: 313

ArcharGelod

Well-Known Member
OP
Newcomer
Joined
May 15, 2019
Messages
45
Trophies
0
Age
25
XP
555
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: 290

ArcharGelod

Well-Known Member
OP
Newcomer
Joined
May 15, 2019
Messages
45
Trophies
0
Age
25
XP
555
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: 349

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Maximumbeans @ Maximumbeans: @HoTuan You'll need one that hasn't had its stock firmware updated in quite some time, for starters